Spanish conquest was centuries after the collapse of lowland Mayan civilization.
But it was the resulting warfare from all that that really fucked then up.
But post-classical Mayan civilization was still healthy and large in scale. Just not the same kind of thing.
It would be a mistake to say their civilization ended then. It simply changed.
The Spanish killed it though. Killed it so systematically it became myth for centuries