The pupils helped make the garden more wildlife friendly by adding a selection of bird feeders, bee biomes and butterfly homes.
Lodge owners were on hand to explain to the pupils about the different wildlife they see in their garden on a daily basis.
Geraldine Jones, teacher at Malmesbury Primary, said: "The children thoroughly enjoyed their visit to William Lodge and really engaged with the owners as they explained all about the different bugs and birds in the garden.
"It was a great opportunity for the children to get out of school for some outdoor learning."
Regional marketing manager at Churchill Retirement Living, said: "We were thrilled to host the children from Malmesbury C of E Primary School and we are grateful for their help making our garden at William Lodge somewhere homely and familiar for wildlife.
"The children were absolutely fantastic and the owners really enjoyed talking to them about the wildlife we see in the garden.
"We would love to welcome the school back to see how their project is developing."