What relations did scribes in ancient Egypt have with their pharaohs in ancient Egypt?

There were things called Royal Scribes that were the pharoah's personal scribe (if they were the top royal scribe;there were many). But there were also many scribes that had nothing to do with the government of Ancient Egypt.