When King Charles II died, his brother James II was the next king. A lot of people did not like James because he was Roman Catholic. William of Orange was invited to invade England. He was the ruler of part of the Netherlands and husband of Mary, the daughter of King James. Many people welcomed William because he was a Protestant. James left the country without a fight and Parliament asked William and Mary to become King and Queen together. When Mary II of England died, William ruled alone. Queen Mary's sister Anne became the next queen. While she was queen, England and Scotland were officially joined as one country. This was called the Acts of Union 1707. It also merged their separate parliaments. The parliament in London now included Scottish Members of Parliament ("MPs"), and was called the Parliament of Great Britain.