Snakes are thought to have evolved from a group of lizards known as the "squamates" around 100 million years ago, during the mid-Cretaceous period. Fossil evidence suggests that the earliest snakes probably had legs and looked similar to modern-day lizards. Over time, snakes evolved to become more elongated, losing their legs and developing specialized adaptations for hunting and survival in various habitats.