The history of domestic cats dates back thousands of years. The earliest evidence of cats being kept as pets dates back to around 9500 BC in the Near East. It is believed that cats were initially domesticated to control rodent populations in agricultural settlements. Over time, cats became popular pets due to their intelligence, affectionate nature, and their ability to hunt.