Panama was the site of the ill-fated Darien scheme, which set up a Scottish colony in the region in 1698. This failed for a number of reasons, and the ensuing debt contributed to the union of England and Scotland in 1707.