Sometime, in the later Devonian or earliest Carboniferous, the fishapods became mainly land-based. One group of them kept their link to the water, and always laid their eggs in water. They became the amphibians. The others evolved a way of laying eggs on land. They were the amniotes, whose key innovation was the cleidoic egg.