Some of the greatest songs ever made were not the result of weeks in a studio or years of planning. A few of them came together in just minutes, almost like magic.
From legendary rock riffs to pop anthems, these quick bursts of creativity changed music forever. Get ready to be amazed by the stories behind 17 iconic hits that were born in the blink of an eye.
1. Yesterday by The Beatles

Paul McCartney literally dreamed up “Yesterday” while he was asleep. He woke up with the melody already playing in his head and quickly wrote it down before he could forget it.
The whole thing came together in minutes.
Released in 1965, the song shot to No. 1 on the Billboard Hot 100. It has since become one of the most recorded songs in all of music history, covered by thousands of artists around the world.
2. (I Can’t Get No) Satisfaction by The Rolling Stones

Keith Richards woke up at 2 a.m. with a guitar riff stuck in his head and grabbed his tape recorder before it could vanish. He recorded the now-famous opening riff and mumbled the words “Can’t get no satisfaction,” then drifted back to sleep in about two minutes.
That sleepy two-minute recording became one of rock history’s most iconic songs. Rolling Stone magazine ranked it the second greatest song of all time, proving that sometimes the best ideas arrive while you are half asleep.
3. All the Young Dudes by Mott the Hoople

Mott the Hoople was on the verge of breaking up when David Bowie stepped in with a song he wrote in just two hours. He sat cross-legged on the floor and performed it for the band right then and there, almost like a gift to save them.
“All the Young Dudes” became a glam rock anthem and gave the band a whole new life. Bowie’s quick creative generosity turned a near-breakup into one of the most celebrated moments in 1970s rock history.
4. Mad World by Tears For Fears

Roland Orzabal and Curt Smith came up with “Mad World” in about an hour while living above a pizza place in Bath, England. The flat was tiny, the budget was small, but the song that came out of that little room was enormous.
It became Tears For Fears’ debut single from their 1982 album “The Hurting.” Years later, a haunting cover by Gary Jules brought it back to a whole new generation, proving the song’s emotional power never fades.
5. Song 2 by Blur

“Woo-hoo!” – that two-second shout is one of the most recognized sounds in all of pop music. Blur’s “Song 2” came together in just 10 to 30 minutes during a studio session, almost as a joke parody of early 90s grunge music.
Nobody expected it to explode the way it did. The track became Blur’s most famous song worldwide, landing in movies, commercials, and sports arenas everywhere.
Sometimes the songs you take least seriously end up becoming your biggest hits.
6. Under Pressure by Queen and David Bowie

Picture four rock legends and one rock icon crammed into a studio in Switzerland, staying up all night just to see what happens. That late-night jam session between Queen and David Bowie produced “Under Pressure” in just 5 to 10 minutes of raw, electric creativity.
The song hit No. 1 in the UK and became one of the most celebrated collaborations in rock history. Its iconic bass line was later sampled by Vanilla Ice in “Ice Ice Baby,” reaching yet another generation of fans.
7. Losing My Religion by R.E.M.

Peter Buck had just picked up a mandolin and was still figuring out how to play it when, within 10 minutes, he stumbled onto the riff that would define one of R.E.M.’s greatest songs. Happy accidents in music do not get much better than this.
“Losing My Religion” earned the band a Grammy Award in 1991 and became a massive crossover hit. The fact that it was born from a beginner’s curiosity on a new instrument makes the story even more charming and inspiring.
8. Fight for Your Right by Beastie Boys

Written on napkins in about five minutes, “(You Gotta) Fight for Your Right (to Party!)” was never supposed to be taken seriously. The Beastie Boys wrote it as a parody of party anthems, but teenagers everywhere adopted it as their personal battle cry.
It became the group’s first and only Top 10 hit on the Billboard Hot 100. The song launched the Beastie Boys into mainstream superstardom, which is a pretty impressive result for something scribbled on a napkin during lunch.
9. Just Dance by Lady Gaga

Lady Gaga walked into the studio and wrote “Just Dance” in a blazing 10 minutes. At the time, almost no one knew who she was, but that would change very quickly once this track hit the airwaves and refused to leave.
The song climbed to No. 1 on the Billboard Hot 100 and stayed in the charts for 22 weeks. That 10-minute writing session launched one of the biggest pop careers of the 21st century, proving that speed and talent can be a seriously powerful combination.
10. Photograph by Ed Sheeran

Ed Sheeran described writing “Photograph” as the song simply “falling out” of him in about 10 minutes. That kind of effortless creation is rare, but for Sheeran, it seemed like the emotion behind the lyrics was already fully formed and just needed somewhere to go.
Released in 2014, the tender ballad became one of his most beloved tracks. Its honest lyrics about holding onto love through distance connected with millions of listeners, turning a 10-minute inspiration into a timeless keepsake of a song.
11. What’d I Say by Ray Charles

Ray Charles was on stage in 1958 with 15 minutes left in the show and no songs left to play. So he did what any genius would do – he made something up on the spot.
The crowd went absolutely wild for the improvised performance.
That spontaneous creation became “What’d I Say,” a track that later earned a spot on Rolling Stone’s list of the 500 greatest songs of all time. A song born from necessity turned into a cornerstone of American soul and rhythm and blues.
12. Single Ladies (Put a Ring on It) by Beyonce

Producer and co-writer The-Dream reportedly penned “Single Ladies (Put a Ring on It)” in just 17 minutes. That is a fun number given that this article lists 17 songs, and this track may be the most perfectly timed entry of the bunch.
The song became a massive cultural moment, winning three Grammy Awards and inspiring one of the most iconic music video dances ever. Beyonce turned those 17 minutes of writing into a feminist anthem that still gets people on the dance floor years later.
13. Sweet Child O Mine by Guns N Roses

Slash was just noodling around with a guitar riff he did not even think was good enough to use. But Axl Rose heard it from another room, rushed in, and wrote the lyrics in just a few minutes.
That spontaneous moment created one of rock’s greatest love songs.
“Sweet Child O’ Mine” hit No. 1 in the United States in 1988 and remains one of Guns N’ Roses’ most beloved tracks. It is a perfect example of two creative instincts colliding at exactly the right moment.
14. Seven Nation Army by The White Stripes

Jack White was doing a routine soundcheck in Melbourne, Australia when he started playing around with a riff. Within 10 minutes, the backbone of “Seven Nation Army” was locked in.
He was not even trying to write a hit – he was just warming up.
The song won a Grammy for Best Rock Song in 2004 and has since become a global chant heard at football stadiums, political rallies, and arenas worldwide. Few soundchecks in history have accidentally produced something so monumentally catchy.
15. My Sharona by The Knack

Doug Fieger of The Knack was head over heels for a girl named Sharona Alperin when he sat down and wrote this song in 15 minutes. The rush of feelings translated directly into a rush of musical energy that is impossible to ignore even today.
“My Sharona” debuted at No. 1 on the Billboard Hot 100 in 1979 and helped shape the new wave genre. Sharona herself became famous too, making this one of the most romantically productive 15 minutes in pop music history.
16. That’s Entertainment by The Jam

Paul Weller came home from the pub one night, sat down, and wrote “That’s Entertainment” in just 10 minutes. The song is a vivid snapshot of everyday British life, full of small, specific details that somehow feel universal and deeply personal at the same time.
Many critics consider it one of The Jam’s finest achievements, and it became a fan favorite that has stood the test of time. Not bad for something written in less time than it takes to brew a proper cup of tea.
17. Dreams by Fleetwood Mac

Stevie Nicks sat down in a quiet corner of the Record Plant studio with a Fender Rhodes keyboard and her feelings about her rocky relationship with Lindsey Buckingham. Ten minutes later, “Dreams” existed.
Raw emotion has a way of writing itself when the time is right.
Released in 1977, it became Fleetwood Mac’s only No. 1 single on the Billboard Hot 100. Decades later, a viral TikTok video featuring the song brought it back to the top of the streaming charts, giving it a second legendary life.