Penicuik YMCA/YWCA has secured a grant of almost £5000 from Grow Wild.
The funding will be used to transform a neglected and overgrown piece of land adjacent to the building at Queensway to create an outdoor adventure play area, picnic area and sensory garden.
There are plans for a pond and herb garden.
A team of high school pupils will be involved in creating and maintaining the garden, along with local volunteers.
Y chairman Keith McIntosh said: “This project aims to create strong intergenerational links between local retired people and young people.”