What did a vizier do?

The vizier was the right hand man of an Egyptian pharaoh. They had many jobs to do and were regarded as the most important government worker.