The history of legal charters asserting certain rights for particular groups goes back to the Middle Ages and earlier. An example is Magna Carta, an English legal charter agreed between the King and his barons in 1215. In the early modern period, there was renewed interest in Magna Carta. English common law judge Sir Edward Coke revived the idea of rights based on citizenship by arguing that Englishmen had historically enjoyed such rights. The Petition of Right 1628, the Habeas Corpus Act 1679 and the Bill of Rights 1689 established certain rights in statute.