Before forming Jamiroquai, Jay Kay sent songs to record companies, including a hip-hop single released in 1986 under the label StreetSounds. During this time, Kay was influenced by Native American and First Nations peoples and their philosophies; this led to the creation of "When You Gonna Learn", a song covering social issues. After he had it recorded, Kay fought with his producer, who took out half of the lyrics and produced the song based on what was charting at the time. With the track restored to his preference, the experience helped Kay realise he "wanted a proper live band with a proper live sound". The band would be named "Jamiroquai", a portmanteau of the words "jam" and the slightly altered name of the Native American confederacy known as the Iroquois. Kay was signed to Acid Jazz Records in 1991 after he sent a demo tape of himself covering a song by the Brand New Heavies. Kay gradually gathered band members, including Wallis Buchanan, who played the didgeridoo. Kay's manager scouted keyboardist Toby Smith, who joined the group as Kay's songwriting partner. In 1992, Jamiroquai began their career by performing in the British club scene. They released "When You Gonna Learn" as their debut single, charting outside the UK Top 50 on its initial release. In the following year, Stuart Zender became the band's bassist by audition.
After the success of "When You Gonna Learn", the band were offered major-label contracts. Kay signed a one-million-dollar, eight-album record deal with Sony Soho Square. He was the only member under contract, but he would share his royalties with his band members in accordance with their contributions as musicians. Their US releases were issued through the Work Group. The band's debut album Emergency on Planet Earth entered atop the UK albums chart. Kevin L. Carter of The Philadelphia Inquirer commented that the album "is full of upbeat, multi-hued pop tunes based heavily in acid jazz, '70s fusion, funk and soul, reggae and world music". With it, the band continued to build their acid-jazz sound in the following years. The album's ecologically charged concept gave Kay press coverage, although Mark Jenkins of The Washington Post found the record's sloganeering "as crude as the music is slick".
The band's original drummer, Nick van Gelder, was replaced in 1994 by Derrick McKenzie, who recorded with the group in one take for his audition. They issued their second album, The Return of the Space Cowboy, in 1994, which reached number two in the UK chart. During its recording, Kay was in a creative block, worsened by his increasing drug use at the time, which resulted in its complex songwriting. However, the record was said to have "capture[d] this first phase of Jamiroquai at their very best", according to Daryl Easlea of BBC Music. Josef Woodard from Entertainment Weekly wrote that its "syncopated grooves and horn-lined riffs" were "played by humans, not samplers".