“S&M” is a song by Barbadian recording artist Rihanna from her fifth studio album, Loud (2010). The song was released on January 21, 2011, as the fourth single from the album. The American songwriter Ester Dean wrote “S&M” in collaboration with the producers StarGate and Sandy Vee. Backed by bass beats, a keyboard and guitars, it is an uptempo dance-pop and Eurodance track that samples the synthesizer line from Depeche Mode’s 1984 song “Master and Servant”. The lyrics revolve around sex, sadomasochism, bondage and fetishes.