upvote
mammals grew from synapsids, which were relations to diapsids from which the reptiles came from.

So these two groups came after fish.

https://bio.libretexts.org/Bookshelves/Introductory_and_Gene...

reply
All of which presupposes we are talking about a phylogenetic subdivision of "fish", of course.
reply