Crews used 10 breathing apparatus, two hose reels, two jets, two compressed air foam jets and the aerial ladder platform to bring the fire at Winton School in Andover under control.
Group Manager Dan Tasker said: "The first crews to arrive were met with a challenging situation of a confirmed fire plus the evacuation of 500 pupils."
More top news
Socialite Tara Palmer-Tomkinson has been cautioned by police after a 'disturbance' at Heathrow Airport.
A woman who was the victim of sexual violence at the hands of her own partner has spoken exclusively to ITV Meridian about her ordeal.
Southampton has joined a world leading project to transform the treatment of cancer and rare diseases by decoding complete sets of genes.