From 1603, Scotland and England shared the same monarch in a personal union when James VI of Scotland was declared King of England and Ireland in what was known as the Union of the Crowns. After James II and VII was deposed in 1688 amid Catholic-Protestant disputes, and as the line of Protestant Stuarts showed signs of failing (as indeed occurred in 1714), English fears that Scotland would select a different monarch, potentially causing conflict within Great Britain, and the bankruptcy of many Scottish nobles through the Darien scheme led to the formal union of the two kingdoms in 1707, with the Treaty of Union and subsequent Acts of Union, to form the Kingdom of Great Britain. Scottish Jacobite resistance to the union, led by descendants of James II and VII including Bonnie Prince Charlie, continued until 1746.