Opportunistic wolves scavenged and followed humans. Eating scraps of left over foods.
Friendlier wolves became favored as humans noticed the benefits of having them around.
By this time, dog breeders were formalized and boomed. Breeders bred for aesthetics or work-related traits or both.
Character traits and physical traits became grouped.
There are around 450 known breeds of dogs.