 James was also crowned at Holyrood in 1437 and building works were carried out before his marriage there in 1449.Between 1498 and 1501, James IV constructed a royal palace at Holyrood, adjacent to the abbey cloister.Royal influence over the abbey further increased when in 1538 Robert Stewart, the infant, illegitimate son of James V, was appointed as commendator of Holyrood.