The Hiberno-Norman presence in Kilkenny was deeply shaken by the Black Death, which arrived in 1348. The Statutes of Kilkenny passed at Kilkenny in 1367, aimed to curb the decline of the Hiberno-Norman Lordship of Ireland. In 1609 King James I of England granted Kilkenny a Royal Charter giving it the status of a city. Following the Rebellion of 1641, the Irish Catholic Confederation, also known as the "Confederation of Kilkenny", was based in Kilkenny and lasted until the Cromwellian conquest of Ireland in 1649. James II of England spent most of the winter months from November 1689 until January 1690 at Kilkenny, residing in the castle.