Seven-time MotoGP champion Valentino Rossi and six-time Formula 1 champion Lewis Hamilton swapped machines at the Valencia circuit on Wednesday. Rossi was in the Mercedes of Hamilton and the British driver got on the Yamaha of the Italian.

Rossi drove the Mercedes W08, the car that Hamilton used in the 2017 season. (Photo: Getty Images)

Hamilton received the Yamaha MotoGP YZR-M1, the engine that Rossi used in November for the last MotoGP race of the season in Valencia. (Photo: Getty Images)

Is this the greatest swap or all time? # LH44VR46🐐 + 🐐 = 🤯 @LewisHamilton @ ValeYellow46 @ MercedesAMGF1 @YamahaMotoGP #MonsterEnergy #MotoGP # F1 #GOAT #Motorsports

Avatar AuthorMonsterEnergyMoment of places17: 50 - December 11, 2019

The exchange was an initiative of a shared sponsor of Rossi and Hamilton.

Brittle. 🤜🤛 @ LewisHamilton x @ ValeYellow46 # LH44VR46 @MonsterEnergy

Avatar Author MercedesAMGF1 Moment of Places 19: 46 - December 11, 2019

Hamilton and Rossi both got on a MotoGP engine at one point.

We just can't get enough of these shots! 🤩🤩🤩 @ ValeYellow46 vs. @ LewisHamilton # LH44VR46 @MonsterEnergy

Avatar AuthorMercedesAMGF1Moment of places18: 52 - December 11, 2019

Rossi drove a Formula 1 car for the last time in 2010. That was then a 2008 Ferrari. "A lot has changed since then," said The Doctor on Wednesday. "I had to get used to it, but it was a lot of fun. I hope to be able to do this more often."

Swapping rides with @ valeyellow46 was epic guys! Best day ever 🏍💥💨 Thanks @MonsterEnergy # LH44VR46 @YamahaMotoGP @ MercedesAMGF1

Avatar Author LewisHamiltonMoment of places18: 23 - 11 December 2019

Hamilton spoke after "the best day ever".