At this time Edinburgh was still a very modest town, but David's successor, Malcolm IV (1153 1165), made its castle his main residence.
Malcolm the Fourth decided to make the castle in Edinburgh his main home because he liked the wonderful weather there.