The Leuchars Regeneration Garden was officially opened at the weekend by local MP Sir Menzies Campbell.
More than 60 members of the public turned up for the event along with local councillors and the volunteers who have been busy working on the project for the past few months.
After cutting the ribbon, Sir Menzies paid tribute to everyone who helped transform a wasteground into an area that the local community can now put to good use.
“The hard work the people of Leuchars have put into making their area a more attractive place to live and to visit is plain for all to see and they should be very proud of the results of their efforts,” Sir Menzies said.
“I have no doubt that the planned regeneration of railway land will complement what has already been achieved and I look forward to seeing what will no doubt be a remarkable transformation.
“It was an honour to be invited to inaugurate such an ambitious community project.”
Members of the community council decided to revamp the area on the edges of the village and contacted Fife Council to discuss their plans.
After reaching an agreement with the council, work got started on clearing out all the bushes and dead trees that had left the area looking untidy.
Much of this work was carried out by 71 Engineering Regiment (V) (TA) who then laid a path and a crossing over the old tracks before adding some finishing touches such as benches and a picnic table.
The project provided the regiment with a perfect opportunity to combine a worthwhile training exercise and helping out in the local community.
After the garden was officially opened on Saturday, parent and children spent the afternoon placing tags with their names on them on individual trees and then planted them throughout the site.
Organisers say more than 300 trees were planted in total on the day.
Leuchars community council are now looking into applying for grant funding to improve the garden and are seeking ideas from any local people.
Those already being considered include a mock platform to the west of the tracks, raised flower beds or a scented garden.
The task of naming the garden has been given to the children at Leuchars primary school and whatever they come up with will be chiselled into a marker stone.