The Kingdom of Ireland (Classical Irish: '; Modern Irish: ' ()) was a client state of England and then of Great Britain that existed from 1542 until 1800 in the island of Ireland. It was ruled by the monarchs of England and then of Great Britain in personal union with their other realms. The kingdom was administered from Dublin Castle by a viceroy (the lord deputy, later lord lieutenant) appointed by the king or queen. Ireland had its own legislature, peerage, army, legal system, and its state church.