Edinburgh has served as Scotland's capital since the 15th century. The exact year isn't precisely recorded; its status evolved gradually as the seat of government and royal court.