King James VI of Scotland's accession to the throne of England in 1603 began the long and slow decline of the Canongate. The loss of the royal court from the Holyrood Palace inevitably affected the wealth of the surrounding area. This was compounded by the union of the parliaments in 1707, as up until then Edinburgh had been the location of the Parliament of Scotland with the Canongate providing a fashionable suburb for the dwellings of the political class. The North Bridge, finally opened in 1772, provided a new and more convenient route from Edinburgh to the port of Leith effectively bypassing the Canongate which had until then been the main route from Edinburgh to Leith via Easter Road causing even more neglect to the residential area which was gradually taken over by industrial premises including breweries and a large gasworks.