In 1529 work started on a tower and royal apartments for James and his wife, Mary of Guise, which now constitute the western section and tower of the current palace.
The work on the royal apartments lasted over a century.