The primary diet of snakes consists of other animals, such as rodents, birds, eggs, and other reptiles. The exact diet of a snake depends on its species, size, and habitat. Some snakes are specialist feeders that target specific prey items, while others are generalists that will consume a wide variety of prey. Snakes use a variety of hunting techniques, including ambush, pursuit, and constriction, to capture and subdue their prey. Once the prey has been killed, the snake swallows it whole, using its highly flexible jaws to consume prey that may be much larger than its own head.