Mammals appeared near the end of

The Mesozoic Era
The Triassic Period
The Jurassic Period
The Cambrian Explosion

Mammals appeared near the end of the Triassic Period.