The first pyramids were built while the woolly mammoth was still alive.
While most mammoths died out long before civilizations arose, a small populations survived until 1650 BC. By that point, Egypt was halfway through its empire, and the Giza Pyramids were already 1000 years old.