Most of the monumental architecture in ancient Egypt was used as tombs. These peoples lives where basically completely devoted to their death and afterlife- The structures where also made as grand as possible to show prosperity of the empire.
Hope this helps :D