One of Scotland's most iconic landmarks is to go dark for the first time in five years. 

As part of planned repairs, Edinburgh Castle will lose mains power for an estimated two to three hours from 5pm on Wednesday.

Perched on a volcanic plug, the castle has dominated the skyline of Scotland’s capital city for centuries. It is usually floodlit.

The last time power was shut off to Edinburgh Castle was in 2019, when electrical LV feeder pillars were installed on-site.

This time, the power will be temporarily shut off to allow essential repairs to the high voltage cable trays and brackets.

READ MORE: Edinburgh Castle named most 'Instagrammable' haunted place in world

The trays and brackets have corroded, in part due to the increased temperature and humidity experienced in Edinburgh as part of climate change.

Edinburgh Castle is one of 336 properties in care of Historic Environment Scotland (HES). Many other sites, particularly coastal properties like Skara Brae and Tantallon Castle, have experienced accelerated wear and tear on their fabric due to the increased moisture and extreme weather conditions brought about by climate change.

HES is tackling this challenge through a systematic inspection and programme of conservation work of the masonry across all sites.

The repairs to Edinburgh Castle are expected to finish the same evening, and the Castle is expected to re-open to visitors as normal at 9.30am on Thursday.