Tetrapod
The earliest tetrapods evolved from the Sarcopterygii (lobe-finned fish) into air-breathing amphibians, perhaps in the Upper Devonian period. This means the transition took place in fish, before the land was the main habitat. This is typical of transitional fossils undergoing mosaic evolution.