You may eat any among the animals that has a divided hoof (the hooves are completely split in two) and that also chews the cud.
The pig is unclean to you because its hoof is divided (the hoof is completely split in two), even though it does not chew the cud.