Dogs' friendliness and loyalty are genetically influenced by mutations that lead to hypersocial behavior, enhancing their bond with humans.