Petrolacosaurus was a small lizard from the Carboniferous. Like all lizards it laid its eggs in nests. These nets can get raided by larger predators like giant insects. The Petrolacosaurus also went after other insects that lived in the swamps of the Carboniferous. They are adults are hunted by larger predators that make up the Coal forests.