"Into the Groove" was written and produced by Madonna and her then-boyfriend Stephen Bray.
Madonna explains the inspiration for the song like this: "When I was writing it, I was sitting in a fourth-floor walk-up on Avenue-B, and there was this gorgeous Puerto Rican boy sitting across me that I wanted to go out on a date with, and I just wanted to get the song over with. I ultimately did go out with him and the song was finished just before my last date with him, which I'm kinda happy that it did not continue... The dance floor was quite a magical place for me. I started off wanting to be a dancer, so that had a lot to do with the song. The freedom that I always feel when I'm dancing, that feeling of inhabiting your body, letting yourself go, expressing yourself through music. I always thought of it as a magical place – even if you're not taking ecstasy. Hence that came to me as the primary inspiration for 'Into the Groove."