Which wild mammal is the closest living relative of the domestic dog? The answer is the gray wolf.
Genetic evidence places domestic dogs closest to gray wolves, which are classified as Canis lupus. Dogs are commonly treated as a separate species or as a domesticated subspecies of the gray wolf, but either classification reflects their exceptionally close relationship. Their shared ancestry lies in ancient wolf populations, not necessarily in any single modern wolf population.
This relationship explains why dogs and wolves can interbreed and produce fertile offspring, although domestication transformed canine behavior, body size, coat patterns, skull shape, and reproduction. Selective breeding later amplified those differences, creating the enormous variety of modern dog breeds.
Coyotes, golden jackals, and red foxes are also canids, but they are more distant relatives. A frequent misconception is that dogs must have descended directly from the exact gray wolves living today. Ancient DNA instead suggests that the dog lineage came from ancient wolf populations, many of which no longer exist, while modern gray wolves remain the closest living relatives.