Science Daily paints a picture of the very first snakes… before they lost their feet:
The study, led by Yale University, USA, analyzed fossils, genes, and anatomy from 73 snake and lizard species, and suggests that snakes first evolved on land, not in the sea, which contributes to a longstanding debate. They most likely originated in the warm, forested ecosystems of the Southern Hemisphere around 128 million years ago.
Their results suggest that snakes originated on land, rather than in water, during the middle Early Cretaceous period (around 128.5 million years ago), and most likely came from the ancient supercontinent of Laurasia. This period coincides with the rapid appearance of many species of mammals and birds on Earth.
The ancestral snake likely possessed a pair of tiny hindlimbs, and targeted soft-bodied vertebrate and invertebrate prey that were relatively large in size compared to prey targeted by lizards at the time. While the snake was not limited to eating very small animals, it had not yet developed the ability to manipulate prey much larger than itself by using constriction as a form of attack, as seen in modern boa constrictors.
While many ancestral reptiles were most active during the daytime (diurnal), the ancestral snake is thought to have been nocturnal.