The Habeas Corpus Act of 1679 was passed during the reign of King Charles II, who had been restored to the throne in 1660. This Act strengthened the ancient writ of habeas corpus, protecting individuals from unlawful detention. Charles I was executed in 1649, Charles III ruled much later, and William III came to power after the Glorious Revolution of 1688.