When Were the Egyptian Pyramids Built?

For a while we thought only Egyptians had this type of building. In fact we have found them in various places through out the world. For example in Mexico, all though they are somewhat different. The Egyptian pyramids were first built in 2780BC. About 5000 years ago.