Sam Smith came out as non-binary in 2019. Writing "Dancing With A Stranger" helped trigger Smith's gender transition.
Smith explained to Billboard
that he had just gone through a breakup and the last thing he wanted to do was write a sad song. The singer had been listening to sexy music that made he feel better, so he wanted to pen a song about going to clubs and kissing people.
"The song launched me into a really beautiful space of writing and freedom," he added. "There's a femininity within that song that has ignited a flame within me."