The government of ancient Egypt kept records about the country. This helped them work out important facts about how the country was running.
For example, by looking at records from past years they could see how much grain or how many animals were collected in taxes.
Government officials were scribes who had been promoted to higher positions. One scribe named Horemheb who was a high government official actually became pharaoh.