Pigs themselves belong to mammals, Artiodactyla and Pig Family.
In the early Eocene (50 million years ago), progressive ungulates and cloven-hoofed animals appeared. In ancient times, cloven-hoofed animals differentiated from ankles, and all pigs evolved from the suborder Porcine. Now there are only three families: Porcine, Hippopotamus and Cicadellidae.
Pigs are one of the living things of Bovidae (pigs and hippos are closely related).