Melbourne gave their Super Rugby coach Damien Hill and a host of departing players a fairytale finish as they came from behind to snatch a 38-37 win over the Highlanders.
Down 31-7 at halftime, the Rebels produced a stunning second half with Bryce Hegarty scoring the match-winning try in the final minute to steal victory.
It was young Hegarty's second try while winger Cooper Vuna and centre Tom English also finished with doubles.
Axed Wallaby James O'Connor came off the bench and gave the Rebels a taste of what they will be missing next season by throwing the final passes in three of five second-half tries.
The Highlanders ran in four first-half tries to seal a bonus point before the break and it looked for a time like that lead would prove too great for the home side to peg back in the season-ending game.