This week marks 20 years since the official opening of the Scottish Parliament building at Holyrood.
It was controversial from the very start. The home originally earmarked for the new legislature - at the old Royal High School - was vetoed; public debate over the location of a new building focused on rival proposals for Leith or Calton Hill, but then Holyrood emerged as the favoured site at the last minute; a competition to choose an architect for the project was won by Catalan Enric Miralles; but when the project began it as still not clear what space and accommodation the parliament would really need, so the requirements kept changing.
The first estimate of the cost of a new building - before either the site or a design had been agreed - was between £10m and £40m. And it was going to be ready by 2001.
The final cost ended up at £414m and the building was officially opened by the Queen on October 9, 2004, with hundreds of workers on site until the day before, putting finishing touches to the project.
Here’s a look back at how the building, now such a familiar sight, came into being.

21. Nearing completion - but one more cost increase
Presiding officer George Reid - who took over from Sir David Steel in 2003 - visits the debating chamber a it nears completion. In February the cost increased to £431m and Mr Reid warned this had better be the last Holyrood cost increase. It turned out that it was - indeed when all the figures were reconciled, the final cost settled at £414m. | TSPL Photo: Neil Hanna

22. Boat shapes still there in final view
Enric Miralles had said his original design for the parliament was inspired by upturned boats. This view of the Holyrood complex, from the last crane on the site, shows everything slotting into place. And there's a clear hint of boat shapes in some of the buildings.. | TSPL Photo: Toby Williams

23. Fraser inquiry into what went wrong
Before the project had even finished, First Minister Jack McConnell agreed to a request from Lothian MSP Margo MacDonald for an inquiry into what went wrong. He appointed former Lord Advocate Lord Fraser of Carmyllie to conduct it. And in September 2004, the inquiry report concluded there was "no single villain of the piece", said early estimates of the cost were always unrealistic, but criticised the type of contract used, design delays and over-optimistic programming. | TSPL Photo: David Moir

24. Officially opened at last
The new Scottish Parliament building was officially opened by the Queen on October 9, 2004. Presiding officer George Reid had announced the date several months before and hundreds were working on the site right up until the day before to get it finished on time. | PA

