It is thought that the group evolved in the seas, but was forced into temporary pools and hypersaline lakes by the evolution of bony fishes.
It's thought that the group evolved in the ocean, but had to retreat to temporary pools and hypersaline lakes as bony fish developed.