In 1707, the Kingdom of England and the Kingdom of Scotland were united into a single kingdom: the Kingdom of Great Britain. Upon that union, each House of the Parliament of Ireland passed a congratulatory address to Queen Anne, praying that, "May God put it in your royal heart to add greater strength and lustre to your crown, by a still more comprehensive Union". The Irish Parliament at that time was subject to a number of restrictions that placed it subservient to the Parliament of England (and following the union of England and Scotland, the Parliament of Great Britain); however, Ireland gained effective legislative independence from Great Britain through the Constitution of 1782.