How were the pyramids in Egypt built?

Bingo!

The surprising thing isn’t that they used counterweights though, but that they used water as the ballast. Even the Acapana Pyramid has water tanks and weirs at the top. The Great Pyramid had the “Lake of the Jackal”.

Ramps have been debunked as a means to have built the great pyramids.

The evidence of how they were built is right before our eyes but people can’t accept it because they want to believe modern man is the crown of creation and ancient people were primitive and superstitious. Stones were pulled straight up the five step pyramids one step at a time using counterweights as described by Herodotus, Horapollo, and ancient writings. You can still see the vertical lines that mark the path of the stones and the five steps in the gravimetric scan made in 1987;

There are canals leading away from the great pyramids and other evidence for counterweights operating on the pyramid as well as the cliff faces.

The word “ramp” isn’t even attested from the great pyramid building age. All the evidence suggests counterweights were used.