The historic estate on the outskirts of the town was left to the people of Selkirkshire by former owner Andrew Nimmo-Smith in 2009.

Over the past five years a Charitable Trust, under the guidance of local lawyer Susan Edington, has attempted to revive the fortunes of the 19th century Palladian mansion and surrounding estate.

Although giant steps have been taken to create a viable business - with regular cultural and family events being staged, artisan studios being developed, and marketing the estate as a wedding and conference venue - the house itself has remained in a poor condition.

But the grant from Historic Scotland will go a long way to bringing it back to its former glory.

In announcing the funding, the Cabinet Secretary for Culture and External Affairs, Fiona Hyslop said: “We are incredible lucky in Scotland to have a built heritage which is the envy of the world.

“By investing in these important buildings we are not just ensuring the protection of these vital connections to our past but also investing in projects which can play a prominent role in the future of their communities, by acting as cultural hubs or by creating jobs and attracting visitors – bringing vital revenue into local economies.

“The scheme demonstrates the Scottish Government’s determination that these buildings are not allowed to just gather dust or fall into disrepair. Rather they are to be protected, preserved, and made available for to all to enjoy.” The development of the redundant Coach House and Loose Boxes, which are part of the historic Category A Listed Stables, into studios and offices won architectural awards.

Susan Edington, chair of the Haining Charitable Trust, hopes the Historic Scotland grant will unlock even more funding for the main house.

She told us: “We are delighted that further funding has been granted by Historic Scotland to restore the Haining House and appreciate this significant contribution which will go a long way to ensuring the future of this mansion.

“We are now faced with the task of investigating opportunities for match funding, which will allow us to spend the needful on the fabric of the building, bringing it into a state of repair that will ensure its benefit to the community for a long time.” The Trust also acknowledged the valuable support of Scottish Historic Buildings Trust who have been supportive and acknowledged the contribution of volunteers at the Haining as well as the continued, enthusiastic support from members of the local community.