The museum was taken over by Gwynedd council in 1991
The closure-threatened Gwynedd Museum and Art Gallery has been saved by a new funding package.
It means the museum in Bangor - the oldest in Gwynedd - will remain open for at least the next three years.
Funding for the centre to remain open was put together by the Welsh Assembly Government (WAG), Gwynedd Council and Bangor University.
First Minister Rhodri Morgan said the museum had an "important role to play" for Gwynedd's heritage.
"I am glad that we have been able to work with Gwynedd council and Bangor University to safeguard the museum.
"It has a very important role to play in preserving the history and heritage of north-west Wales," said Mr Morgan.
Gwynedd county councillor Dai Rees Jones, chairman of the Gwynedd Museum and Art Gallery Working group, said the announcement was important in ensuring the long-term future of the museum.
"We can now work together to find new and creative ways of securing a sustainable long-term future for the museum," he said.
Professor Merfyn Jones, vice-chancellor of Bangor University added: "We are pleased to have been able to agree the funding that will secure the museum's future in the interests of both the local community and visitors to the area."
Since news came in January last year that funding for the museum was being withdrawn, supporters have campaigned tirelessly to save it from closure.
The museum was first opened in 1884 by Bangor university.
It has been run by Gwynedd county council since 1991.