The first national government is believed to have been that of the first Egyptian king Menes, as he united Upper and Lower Egypt in 3110 B.C. and also founded a central government in Memphis (near present-day Cairo). Menes (who ruled for 62 years) established the first of thirty dynasties that would go on to rule ancient Egypt for close to 3000 years, all the way up until 332 B.C. By 2700 B.C., when the 3rd dynasty had begun, the Egyptian central government was strong and well established. During the 3rd Dynasty, the Pyramid Age began, a period in which that saw the construction of the magnificent pyramids of Egypt.