Anne Stuart was queen when the kingdom of Great Britain was created with the incorporation of Scotland in 1707.