I think they were relatively advanced during the time of the pharaos. Then muslims happened.
Well, there was a gap of several centuries...................