Legendary King Menes founded the city of Ineb-Hedj around 3100 BC which became the capital. Ineb-Hedj translated as "The White Walls". It later changed to Memphis which is a Greek translation for "the good place". The location was 12 miles or 20 km south of the current capital Cairo.
Ancient Egypt page