Diplocaulus is an extinct genus of leponspondyl amphibian from the late Carboniferous to the late Permian period (roughly 270 million years ago). It was up to 1 meter ( 3.3 feet ) long. It is presumed to have swum with an up-and-down movement of its body. The wide head could have acted like a hydrofoil, helping the creature glide through the water. The shape was also defensive, since even a large predator ( Eryops for example ) would have a hard time trying to swallow a creature with such a wide head. Diplocaulus probably ate insects and fish. Like all amphibians, it had to live near the water since amphibian eggs have no shells and must be laid in the water (or in very damp areas). Diplocaulus fossils have been found in Texas, USA, North America.