
" is actually a really random one because I went in to write songs for other people with a guy called Steve Mac and Johnny McDaid, and we were writing this song and I was like 'this would really work for Rihanna,'" he explained. It was conceived as a duet between Rihanna and Rudimental, but the head of the record label convinced him to keep the song for himself. As he had recently written all the songs he wanted for the album, the song was therefore not intended to be included in the album. The song was the last song written for Sheeran's third album ÷. On 22 December 2021, "Shape of You" became Spotify's first song to hit 3 billion streams. In 2018, Billboard ranked "Shape of You" as the ninth most successful song of all-time, as the magazine celebrated the Hot 100's 60th anniversary. The song won the Grammy Award for Best Pop Solo Performance at the 60th Annual Grammy Awards. "Shape of You" was nominated for British Single of the Year and British Video of the Year at the 2018 Brit Awards. In 2019, it was named the number-one song on the Billboard Mainstream Top 40 chart of the 2010s decade. In 2018, it sold an additional 14.9 million copies and made a second appearance in the Billboard year-end chart, at No. "Shape of You" was the best-selling song of 2017 and the second best-selling digital song worldwide, with combined sales and track-equivalent streams of 26.6 million units according to IFPI. It was the best-selling song of 2017 and the decade in the UK.

It was also the most-streamed song of the decade on Spotify with 2.4 billion streams by December 2019. On 10 December 2018, the song became the first song to hit 2 billion streams on Spotify and is currently the most streamed song on the service since 21 September 2017 when it surpassed " One Dance" by Drake as the most streamed song on Spotify. It stayed at number one for a record-tying 16 consecutive weeks on the Canadian Hot 100, as well as 14 non-consecutive weeks on the UK Singles Chart, and 12 non-consecutive weeks on the Billboard Hot 100. "Shape of You" peaked at number-one on the singles charts of 34 countries, including the US Billboard Hot 100 (later becoming the best performing song of 2017), as well as the UK, Australian and Canadian singles charts. The song was produced by Sheeran and Mac. Due to its interpolation of " No Scrubs" by TLC, Kandi Burruss, Tameka "Tiny" Cottle, and Kevin "She'kspere" Briggs are also credited as writers.

The dancehall-infused pop song was written by Ed Sheeran, Steve Mac and Johnny McDaid. It was released on 6 January 2017 as one of the double lead singles from his third studio album ÷ (2017), along with " Castle on the Hill". " Shape of You" is a song by English singer-songwriter Ed Sheeran.
