Fafhrd and the Gray Mouser are two sword-and-sorcery heroes appearing in stories written by American author Fritz Leiber. They are the protagonists of what are probably Leiber's best-known stories. One of his motives in writing them was to have a couple of fantasy heroes closer to true human nature than the likes of Howard's Conan the Barbarian or Burroughs's Tarzan.

Fafhrd is a very tall (nearly ) and strong northern barbarian, skilled at both swordsmanship and singing. The Mouser is a small (not much more than ) mercurial thief, gifted and deadly at swordsmanship (often using a sword in one hand and a long dagger or in the other), as well as a former wizard's apprentice who retains some skill at magic. Fafhrd talks like a romantic, but his strength and practicality usually wins through, while the cynical-sounding Mouser is prone to showing strains of sentiment at unexpected times. Both are rogues, living in a decadent world where only the ruthless and cynical survive. They spend a lot of time drinking, feasting, wenching, brawling, stealing, and gambling, while are seldom fussy about who hires their swords. Still, they are humane and—most of all—relish true adventure.

Fafhrd and the Gray Mouser

The characters were loosely modeled upon Leiber himself and his friend Harry Otto Fischer. Fischer initially created them in a letter to Leiber in September 1934, naming at the same time their home city of Lankhmar. In 1936, Leiber finished the first Fafhrd and Gray Mouser novella, "Adept's Gambit", and began work on a second, "The Tale of the Grain Ships". At the same time, Fischer was writing the beginning of "The Lords of Quarmall". "Adept's Gambit" would not see publication until 1947, while "The Lords of Quarmall" would be finished by Leiber and published in 1964. His second story, "The Tale of the Grain Ships", would become the prototype for "Scylla's Daughter" (1961) and, later, the novel The Swords of Lankhmar (1968).

Fafhrd and the Gray Mouser

The stories of Fafhrd and the Gray Mouser respectively were only loosely connected until the 1960s, when Leiber organized them chronologically and added additional material in preparation for paperback publication. Starting as young men, the two separately meet their female lovers, meet each other, and lose both their lovers in the same night, which explains both their friendship and the arrested adolescence of their lifestyles. However, in later stories, the two mature, learn leadership, and eventually settle down with new female partners on the Iceland-like Rime Isle. The novels have many picaresque elements, and are sometimes described as picaresque on the whole.

Fafhrd and the Gray Mouser

Setting

The majority of the stories are set in the fictional world of Nehwon ("nehw on", or "Nowhen" backwards: contrasted to Samuel Butler's 1872 Erewhon). Many of them take place in and around its greatest city, Lankhmar. It is described as "a world like and unlike our own". Theorists in Nehwon believe that their world may be shaped like a bubble, floating in the waters of eternity.

Sundered from us by gulfs of time and stranger dimensions dreams the ancient world of Nehwon with its towers and skulls and jewels, its swords and sorceries. Nehwon's known realms crowd about the Inner Sea: northward the green-forested fierce Land of the Eight Cities, eastward the steppe-dwelling Mingol horsemen and the desert where caravans creep from the rich Eastern Lands and the River Tilth. But southward, linked to the desert only by the Sinking Land and further warded by the Great Dike and the Mountains of Hunger, are the rich grain fields and walled cities of Lankhmar, eldest and chiefest of Nehwon's lands. Dominating the Land of Lankhmar and crouching at the silty mouth of the River Hlal in a secure corner between the grain fields, the Great Salt Marsh, and the Inner Sea is the massive-walled and mazy-alleyed metropolis of Lankhmar, thick with thieves and shaven priests, lean-framed magicians and fat-bellied merchants—Lankhmar the Imperishable, the City of the Black Toga.

—From "Induction" by Fritz Leiber

In The Swords of Lankhmar, it is revealed that Nehwon is just one of many worlds in a multiverse when Fafhrd and the Mouser join forces with a German explorer named Karl Treuherz who is looking for his spacecraft, which he uses to cross the boundaries between parallel dimensions in his hunt for new animals to feature at a zoo.

Technology in Nehwon varies between the Iron Age and medieval. Leiber wrote of Lankhmarts: "They may be likened to the Romans or be thought of as, if I may use such a term, southern medievals." On the topic of his Eastern Lands, he wrote: "think of Saracens, Arabs, Parthians, Assyrians even. They ride the camel and elephant, and use the bow extensively."