The song was written and composed by Michael Jackson, Bill Bottrell and Teddy Riley and produced by Riley and Jackson. Riley recalled to Musicradar.com
that this song, "was about a woman who was just so beyond, you know, beyond the best girl he's ever been with." He added: "That was the name of the album, so we thought about doing a song called Dangerous, and Michael came up with the hook. So I said, 'Let me get into the music'. I went to my lab and put the track together. The track evolved: Michael came in with the hook, I did the music and then we finalised the song. We used a drum machine, the Akai MPC-60, and a lot of the sounds from that and samples I had on my sample CDs. There's no science to it, I just feel my way through the production. I always feel my way – I never do anything the same."