Fife Council says the old Madras College Kilrymont campus buildings are to be put to "good use" - after approving a preferred bidder for the site.
Pupils will leave the campus this summer to go to their new facilities at Langlands.
It means the current buildings at South Street and Kilrymount will no longer be needed. The South Street site has been sold to St Andrews University - though the preferred bidder for the Kilrymount site has not yet been revealed publicly.
Councillor David Barratt, convener of the asset and corporate services sub-committee, said: "The committee's decision to approve disposal, via a bid process undertaken for the sale of the Kilrymont campus, is a positive step forward in securing a future use for the current school site.
"The Council's marketing of the campus involving an approved development and design brief yielded several high-quality submissions allowing the committee to make a positive decision on a disposal which will work to the advantage of the location and community from investment."