Its fossils came from rocks formed in ancient rivers and lakes in what is now the Atlas Mountains of southeastern Morocco.