Ophidiophobia is the irrational fear of snakes, but it is sometimes called by a more general term, herpetophobia – the fear of reptiles.
Phobias related to reptiles and snakes, specifically, may have been developed by our ancestors as a survival mechanism.