The Cathar religion is considered a renegade form of Christianity. They believe in the fight between good and evil; that the world we live in is the work of the devil and evil and that the life hereafter is good and the work of god. They don't believe in Christ or the resurrection, etc. For this reason they were considered heretics.

Despite their heresies they were a well educated, peace loving people and they were accepted by the open minded Occitane people. This integration lead to problems when in 1215 the new pope Innocent (!!) declared a crusade against these heretics. The soldiers he used to implement this crusade were the knights from the north of France who readily agreed as they saw this as a license to expand their own territories - and for the next 30-40 years this is what they did.

The Cathars and Albigensians (who were Cathars from Albi) ran away to hide in the mountains of the area. Here they held out in mountain top castles, sometimes for years.

This one is Peyrepetus. It is quite a steep climb up from the valley floor but once there the views are stunning. Here the Cathars held out for a couple of years before surrendering. They were then given the choice;  convert to Catholicism or burn. Interestingly, many chose the latter.

After the Cathar period the castles became part of France proper and actually guarded the border with Spain for the next 100 years. Interestingly, only 25 men were required to provide a full time defensive capability. The castle was so good that such a small group could hold off a massively superior force without any problem. But then in about 1350 the border moved 50 miles south and they were no longer necessary.

What's that on the peak in the distance?

It's Queribus another castle in the region (by now we were tired of climbing hills).