The union flag will not be flown at Edinburgh Castle during this year's royal military tattoo due to repair works to the main flagpole.
The 90ft pole, which is visible from across Edinburgh, is currently surrounded by scaffolding as workers attempt to fix problems with the flagraising mechanism.
The flagpole, maintained by the MoD, usually flies the union flag during the spectacular performance in August.
However under current plans, the mechanism issues are not expected to be properly addressed until mid-September.
It means the pole will be bare during the showcase of British, Commonwealth and international military bands.
In a statement, the MoD said: "Work is being carried out to replace the Crown Square clock tower flagpole, which as a flag-flying station the MoD are responsible for, in the upper ward area of Edinburgh Castle.
"This is due to a failure in the flagpole mechanism.
"Temporary high-level scaffolding will be in place for this project, which is expected to finish in September.
"All areas and exhibits within the Crown Square area of the Castle will remain open to visitors as normal throughout the duration of the works."
A representative from The Royal Edinburgh Military Tattoo explained: "Work is still being carried out to replace the Crown Square clock tower flagpole, but there will be a Union flag flying above The Gatehouse."