Snails belong to the phylum Mollusca, which includes animals with soft bodies and hard shells.