David also founded the Abbey of Holyrood and created several royal burghs ( towns with special trading privileges ) , including Edinburgh and Canongate ; the latter was under the jurisdiction of the monks , or canons , of Holyrood .
Edinburgh was one of the royal burghs created by David .