A new museum and art gallery are set to be built in Fife under multi-million pound plans for Dunfermline.
Charting the Fife town's medieval history, they are to be housed in the existing Carnegie library and a disused bank.
Fife Council has pledged £6.8m and the project has a first round pass for £2.8m from the Heritage Lottery Fund.
A first round pass means it meets the HLF's criteria for funding before detailed plans have been submitted.
The project now has up to two years to submit fully developed proposals to compete for a firm award.
The buildings would be redeveloped and a new extension added to create a huge development including a museum, art gallery, archive, library and local history services.
Education and identity
Colin McLean, head of the HLF in Scotland, said: "Museums, galleries and libraries are extremely valuable community assets.
"They make a great contribution to people's education, self-identity and enjoyment.
"They keep our history safe for future generations and they impact on the local economy, often as the cornerstone of an area's tourism industry.
"We are delighted to be able to give Dunfermline our support at this stage."
Jim Tolson, MSP for Dunfermline and West Fife, said he was "overjoyed" with the backing.
"HLF's support for this project is crucial to the long-awaited addition of a museum and art gallery in Dunfermline which will benefit both local people and visitors for generations to come," he added.
Brian Goodall, chairman of Fife Council's housing and communities committee, said: "The Heritage Lottery Fund's decision to support the development of Dunfermline's new flagship museum is a tremendous vote of confidence in the city. We are delighted with the news.
"Fife Council has itself made a major commitment of £6.8m to delivering this project as part of the council's drive to improve leisure and cultural opportunities for all."