Felis catus is the domesticated form of the African wildcat Felis s. lybica. The latter is believed to have been domesticated in the Near East at the time of the Neolithic agricultural revolution, where keeping pests away from grain storage would have been paramount. It likely that, much like other domesticates, several domestication attempts would have taken place across time and geographical regions.
As rodents such as the rat and house mouse hitchhiked their way across Europe, cats were soon to follow. One notable case is perhaps Cyprus, which was never attached to the mainland and had no native cat population. Cats’ sudden appearance around 7500BCE (most notably with a young adult individual associated with a human burial) thus imply that these would have been tamed wildcats at the very least which had been brought to Cyprus by boat.
Perceptions of domestic cats were somewhat ambivalent, as can still be perceived from contemporary folklore. This led to them being viewed as creatures imbued with supernatural abilities, both revered and reviled. Cats were notably worshipped in Ancient Egypt, yet killed by the hundreds to be sold as mummies; persecuted in the Medieval period for supposedly being witches’ familiars, or simply being viewed as ratters or even pests. While their ‘dog cousins’ were being selectively bred for a variety of functions, cats merely lingered at the edge of human settlements - though cases of companionship exist. It was in fact not until the late 18th century that the cat fancy developed along with the vast majority of the breeds we see today.
It’s not easy being a cat.