This song finds One Direction out on the road and daydreaming about their girlfriends back home. The quintet penned the tune with their frequent songwriters Rami Yacoub and Savan Kotecha as well as Albin Nedler and Kristoffer Fogelmark. The boys were encouraged to contribute to the production process of Take Me Home and were given a writing room separate to the room they were recording in. They ended up contributing to four of the tracks on the set. One Direction's Zayn Malik explained to MTV News why the writing room was so important. "We could literally go in whenever we wanted, whenever we had free time, so someone might go in in the morning and come up with an idea or a concept for a song and write a few lyrics or whatever," he said, "and by the end of the day you could come back and it would be completely different story."
The bedrock of David Guetta's Nicki Minaj-featuring single "Hey Mama" is a sample of "Rosie," a 1940s prison recording from folk archivist Alan Lomax that songwriter Esther Dean first showed the French DJ on YouTube.