Cats, unsurprisingly, came to humans more on their own terms. Their arrival in human society occurred a bit later than dogs, approximately 10,000 years ago, with the advent of agriculture. Large, centralized groups of messy humans and grain stocks attracted waves of mice and rats, which in turn attracted cats. Such easy pickings were just too irresistible to hungry felines, who began to lurk around human settlements. Humans, grateful for the merciful relief from rodents, gladly kept them around. Like with dogs, cats' roles as hunters eventually shifted more to being lovable companions as human society developed and industrialized. Yet in many countries around the globe, cats continue to execute the mercenary role they were originally domesticated to fulfill in ancient times.