Many Egyptologists have somewhat different views on exactly why the ancient Egyptian kings built Pyramids as their tombs, but all of them seem to agree that it had to do with their worship of the sun god, Re (Ra). Most believe that the Pyramid was symbolic of the Benben, a mound that rose from the waters during the creation of the earth, in ancient Egyptian mythology, which was closely associated with Re as the creator god.
Read more: http://www.touregypt.net/featurestories/pyramidintroduction.htm#ixzz3uJrME3mG