The origin of the domestic cat is the domestication of the African wildcat, which began to be kept for the purpose of catching rats.