In December 1593 Anne of Denmark decided to come to Stirling for the birth of her first child, and James ordered the palace which was in "ruin and decay" to be repaired. Prince Henry was born in the castle in 1594, and the present Chapel Royal was constructed for his baptism on 30 August. Probably built by William Schaw, the chapel completed the quadrangle of the Inner Close. Like his predecessors Henry spent his childhood here under the 2nd Earl of Mar, until the Union of the Crowns of 1603, when his father succeeded as King of England and the royal family left for London.