The pyramid was built over 5,000 years ago, even before the pyramids of Egypt and Mesopotamia, a time when archeologists had believed the Amazon was populated only by hunter-gatherers.