Students were at the traditional 151st Trinity May Ball which later spilled out into the streets.
The partying then continued until 6am this morning with drunken punt rides on the river and a champagne breakfast in the college gardens.
Rivals Oxford University had their own messy fun earlier this month.
After their exams they were doused in booze, confetti, foam and silly string.
Around 1,800 undergraduates dressed in lavish ball gowns and tuxedos for the extravagant end-of-term party.
They were handed bottles of water and parasols to cope with the heatwave.
The sold-out ball is the largest event of the Cambridge student social calendar.
Some students queued for several hours to get into the party.
Guests were treated to a five-course meal served in Trinity Great Hall.
Then students could tuck in to oysters, a hog roast and a chocolate fountain, while drinks were served from a floating punt on the river.
They were then treated to entertainment from comedians as well as a casino and jazz tent.
Fireworks then lit up the skies around midnight.
The Trinity May Ball is a historical event.
The first one was held in 1838 when 38 students famously drank 47 bottles of champagne, 12 of sherry, six of Mosel, two of Claret, six quarts of ale and 16 servings of punch.
Organisers say on their website: “Following a triumphant 150th anniversary in 2016, the First and Third Trinity May Ball 2017 Committee have been hard at work setting up for what promises to be a night to remember.
“With the best acts, tastiest food and a very special champagne bar this year promises to be one of the best May Balls to date.”