In 1118, prior to his ascension to the Scottish throne, Prince David established a foundation of canons regular of the order of St. Augustine at what is now Jedburgh. The foundation appeared to have the status of 'priory' in the early years and a man by the name of Daniel was described as the Prior of Geddwrda in 1139. The church was later raised to the status of monastery before becoming, in the years prior to King David's death in 1153, a fully fledged abbey dedicated to the Virgin Mary, probably in 1147.