Rats have lived beside people for a long time. The path from wild brown rats to pet rats is much newer than most people think.
If you are asking how rats were domesticated, the short answer is that humans gradually selected the calmest, most colorful, and most human-tolerant rats over many generations.

Wild rats started living close to human settlements, especially the brown rat, which adapted well to human-altered environments. Over time, people began to keep rats as pets through accidental captures, selective breeding, show culture, and laboratory work.
The Wild Ancestor Behind Pet Rats

The main ancestor of pet rats is the brown rat, Rattus norvegicus, a highly adaptable member of the family Muridae. Its close association with people made it a classic commensal species, living off human environments without being truly dependent on them.
Why The Brown Rat Became The Main Domestic Line
The brown rat spread quickly because it tolerated human settlements, food storage, ships, and urban edges very well. According to the Rat & Mouse Gazette overview of domestication, pet rats descend mainly from Rattus norvegicus, which became established in close association with people before selective breeding turned certain lines into domestic rats.
Not every rat species fit this path. The brown rat proved easier to keep, breed, and handle in controlled settings than many other wild rats.
How Brown Rats Differ From Black Rats
The black rat, Rattus rattus, also called the ship rat or house rat, is a different rat species from the brown rat. The two are both old world rats, yet they differ in body shape, habits, and historical spread, and they are reproductively isolated from each other, as noted by the RMCA account.
The black rat is the species long linked to the spread of bubonic plague in medieval Europe, while the brown rat later displaced it in many places. Pet rats usually come from the brown rat line, not the black rat line.
Commensalism And Life Alongside Humans
Commensalism set the stage for domestication because rats already lived near people before anyone tried to breed them on purpose. Human homes, granaries, ports, and farms created a dependable niche for wild rats, especially brown rats and wild Norway rat populations.
That close contact made taming and breeding possible. Once people started selecting calmer animals, the line between wild rats and domesticated rats became much easier to cross.
From Captured Curiosities To Early Breeding

Early rat domestication grew from curiosity, novelty, and entertainment. White and albino rats were especially important because their unusual coats made them stand out, and human handling soon followed.
Albino And White Rats In Early Captivity
Albino rat and white rat color forms appeared in wild and captive populations, then drew attention because they looked different from ordinary brown rats. The RMCA history notes that these pale rats were likely the first domesticated rats kept for companionship and display.
By the nineteenth century, fancy rat culture was taking shape. Selective breeding began to favor coat color, markings, and temperament.
Hooded rats and other patterned animals became prized because they looked striking and were easier to show.
Rat Catchers, Rat Pits, And Rat Baiting
Rat catchers and rat catching shaped early human-rat contact in a grim way. In France and England, rat baiting and rat pits created a demand for live rats, and people like Jimmy Shaw became known for keeping tame rats for demonstration and entertainment.
Those practices created captive populations that people could sort, handle, and breed. The same environment that fed rat baiting also encouraged humans to save the most unusual animals for future breeding.
Fancy Rats And The Rise Of Rat Shows
Fancy rats grew out of those early captive populations and became a recognizable pet line. Rat shows, collections of tame animals, and careful breeding turned the rat from a spectacle into a companion animal.
The jardin des plantes and other scientific or public collections helped normalize keeping unusual animals in captivity. The domestication of the rat gradually shifted from novelty to consistent breeding practice.
By the time organized fancy rat communities developed, pet rats were already being selected for docility, color, and easier handling.
How Laboratories Shaped Modern Domestication

Laboratories accelerated rat domestication by rewarding calm behavior, reliable breeding, and predictable bodies. Researchers produced the modern laboratory rat and also influenced the temperament of many pet lines.
The Wistar Institute And Standardized Rat Lines
The Wistar Institute played a major role in rat breeding in the United States, especially through work with the Wistar rat. The RMCA history of domestication explains that early research at Wistar helped establish standardized lines and made rat domestication more systematic.
The pa strain and other laboratory rat lines followed the same logic, favoring traits useful for research. In that setting, consistency mattered as much as appearance.
Why Laboratory Rats Became More Docile
Laboratory rats had to tolerate handling, breeding, and repeated human contact, so docility became a major trait under selection. Wild rats tend to be cautious and hard to reproduce in captivity, while calmer animals often breed more successfully.
That pattern reinforced itself generation after generation. When breeders select for easier handling, they often select for rats that are less reactive and more trusting around people.
How Lab Strains Connect To Pet Rats Today
Pet rats and laboratory rats share a deep common history, even if their breeding goals differ. Albino rats, white rat lines, and other tame strains from labs and fancy breeding all contributed to the domestic rats you see now.
Many modern pets feel social, intelligent, and hand-tame compared with wild rats. Their behavior reflects long selection in human care.
What Counts As A Rat And Why The Story Gets Confused

People often mix up true rats with other rodents that only look similar. Not every animal called a rat belongs to the same group, and not every cultural rat story is about domestication.
True Rats Versus Pack Rats And Other Rodents
True rats belong to Rattus, while pack rats are in the genus Neotoma. A pack rat is not a pet rat ancestor, even if the name sounds close.
The Polynesian rat is another example of a different rodent with a rat-like name and a long human history. Sorting these animals apart helps you separate real domestication history from general rodent folklore.
Regional Traditions, Symbolism, And Cultural Memory
Rat stories also vary by region and culture. The year of the rat in the Chinese zodiac and the worship of rats at karni mata temple in India show that rats can carry positive or sacred meaning, not only pest meaning.
Those traditions shaped how people remembered rats, even when the animals themselves were not being domesticated in the pet sense. Cultural memory often preserves the idea of rats as clever or powerful long before modern pet keeping became common.
Why Domestication Is Still Being Rewritten
The history of rat domestication remains unclear because researchers have only patchy records. Breeders developed some lines in several places.
Researchers studying brown rat domestication, including those publishing in journals like Animal Frontiers, found that different rat populations contributed to today’s pets and lab rats.
The process did not follow a single path from wild rat to house pet. Commensal living, accidental captures, selective breeding, and laboratory selection all shaped the rats people keep as companions.