the dog or domestic dog ( canis familiaris or canis lupus familiaris ) is a domesticated descendant of the wolf. the dog is derived from an ancient, extinct wolf, and the modern wolf is the dog's nearest living relative. the dog was the first species to be domesticated, by hunter – gatherers over 1 5, 0 0 0 years ago, before the development of agriculture