In 1707, the Parliaments of England and Scotland agreed the Treaty of Union, which joined the two countries into one country called the "United Kingdom of Great Britain" under Queen Anne with the Acts of Union 1707. This union merged Scotland and England into one kingdom. England and Scotland kept their own laws, with English law in England and Wales and Scots law in Scotland. The division between the Church of Scotland and the Church of England continued. Ireland and Great Britain continued to have the same king, but Ireland did not become part of the new kingdom in 1707.