<human>:  When did the first dynasty of Egypt begin?
<bot>: The first dynasty of Egypt began with the unification of Upper and Lower Egypt under the rule of King Narmer. Narmer is believed to have been the first ruler of Egypt, and he is credited with unifying the two regions of Egypt into a single kingdom. Narmer is also credited with creating the first Egyptian writing system, which was used to record the history of Egypt.