Abd Al-Aziz asks the wise shepherd to help him run Egypt. When Marwan I falls ill, Abd Al-Aziz goes to see him. Marwan I passes away, and Abd Al-Malik Ibn Marwan becomes the caliph.