The 4.4-litre V8-powered BMW has 441kW of power and 750Nm of torque, reaching 100km/h in 3.4 seconds. But speed was not a factor in this record, with the average speed set around the BMW Performance Centre in South California being 46.6km/h.
Official rules did allow for fuel stops. However, BMW decided not to stop the fun.
A previous-generation M5 driven by BMW precision driver, Matt Mullins, was used as a refuelling car, drifting alongside the 2018 model.
With only centimetres between the cars, Matt Butts from Detroit Speed hung out of the rear-side window using a fuelling system similar to racing, in a manoeuvre like you see with aircraft.
With its 68-litre fuel tank, the first refuel was undertaken at the three-hour mark.
Out of the five refuels, some went smoother than others, with some cringe-worthy paint-swapping involved.
The synchronised drifting of the two M5's also saw BMW break another record for the longest twin vehicle drift at 79.2kms. It walked all over the record of two Nissan 370Zs distance of 28.5kms that was set in 2014.