The Church: a power of its own
In medieval western Europe, the Catholic Church was the largest landowner and one of the strongest institutions. It had its own leaders (the pope, bishops, abbots), its own courts and laws (canon law), and its own income from tithes and lands. Monasteries kept many of the books and schools.
Kings and popes often clashed. In the Investiture Controversy (about 1075 to 1122), they argued over who could appoint bishops. A compromise, the Concordat of Worms (1122), shared the power. The lesson: no ruler held all power alone.
King John and the barons
King John of England (ruled 1199 to 1216) lost wars in France, demanded heavy taxes and punished nobles without trials. In 1215, rebel barons forced him to agree to a charter at Runnymede, near London. It became known as Magna Carta ("Great Charter").
One famous clause (number 39) said that no free man could be imprisoned, have his land taken, or be exiled, except by the lawful judgment of his equals or by the law of the land.
But Magna Carta mostly protected barons, the Church and free men. Serfs, who were most of the population, gained little. And it failed at first: the pope cancelled it within weeks and civil war broke out. It was reissued in 1216, 1217 and 1225, and over time became a symbol of the rule of law.