There were two places used as capitals in ancient Egypt. We have already seen Thebes, which was used as the capital in the (New Kingdom) days.
In the earliest (Old Kingdom) days the capital was near modern Cairo. The ancient Greeks called it Memphis, which is the term we still use.