Pupils and staff at Burntisland Primary gave their school a farewell hug as they moved out of their old building.
Wednesday was the final time youngsters attended Ferguson Place before moving to the newly built school at Toll Park in August when the new term begins.
The whole school gathered around the building and held hands to give it a big hug as an aerial photograph was taken from overhead.
Martin Cooper from Bam Construction Ltd - the company which built the new school - arranged the plane flyover.
A picnic lunch was held for the 600 youngsters and staff, and the pupils also enjoyed a disco in the playground.
But one of the main highlights of the day was a surprise flashmob performance performed by the staff and management team. Pipers were also there to play out the children as they left for the last time.
Julie Anderson, headteacher, said: “It was an amazing day. It was sad to be leaving the old school but we are also very excited about moving into the new school so there were a lot of mixed emotions.
“I was a pupil here and I have a lot of memories, but we gave the school building a fantastic send-off.”
The current P7s were given the special task of choosing a logo for the school badge - with an opportunity to change it in preparation for a fresh start in August.
Julie added: “In the new school though we will create a lot of new memories and we will have enough space to all be together and that is priceless.”