The previous record holders were Luis Fonsi and Daddy Yankee’s Despacito and Mariah Carey and Boyz II Men’s One Sweet Day. Carey sent her best wishes to Lil Nas X.

Old Town Road, the song by Lil Nas X featuring Billy Ray Cyrus, is the longest-running Number One song in US chart history.

The song has been top of the Billboard Hot 100 for the 17th week, longer than the previous record holders, Luis Fonsi and Daddy Yankee’s Despacito and Mariah Carey and Boyz II Men’s One Sweet Day.

Old Town Road was released independently on December 3, 2018, and was not played anywhere commercially.

Then Lil Nas X uploaded the tune to the short-form video app TikTok in February. It led to a meme in which creators drink “Yee Yee Juice” and change into western garb in time for the song’s drop.

It then become the background music for anything, from backflips to baking, Billboard reported.

“It’s been incredible to watch Old Town Road grow from its start on TikTok in February – as the backbone of an accessible and engaging meme that generated millions of creations and billions of views – to a record-breaking smash hit that has all walks of life listening on repeat,” said TikTok US General Manager Vanessa Pappas.

As a result of the buzz created on TikTok, Lil Nas X was signed to Columbia Records, which now distributes Old Town Road. The song was produced by YoungKio, otherwise known as Kiowa Roukema from The Netherlands. It features a sample of the instrumental piece 34 Ghosts IV by the US band Nine Inch Nails.

Old Town Road has been officially remixed four times with musicians Billy Ray Cyrus, Diplo, Mason Ramsey, Young Thug and RM.

In March, the song reached number 19 on the Billboard Hot Country Songs chart before the magazine disqualified it on the grounds that it did not fit the country genre.

Then both the original version of the song and the remix featuring Cyrus eventually hit number one on the Billboard Hot 100 and has stayed there for a record-breaking 17 weeks. One or more versions of the song have been number one on the singles charts in the UK, Australia, Germany, Canada, France, Ireland, the Netherlands, New Zealand, Norway and Switzerland.

Lil Nas X was obviously delighted at the news.

As was Billy Ray Cyrus.