Ata-Malik Juvayni
During his term as "sahib-i divan", Shams al-Din amassed a hefty sum of revenue, mainly in properties, but also through marketable investments in Hormuz, which greatly profited Shams al-Din and his associate, Sunjaq, who served as joint vizier under Abaqa. Shams al-Din's illustrious career resulted in much resentment; in 1277, his former apprentice Majd al-Mulk Yazdi accused Shams al-Din and Ata-Malik Juvayni of secretly collaborating with the Mamluk Sultanate of Egypt, which proved unsuccessful due to the lack of proof. However, three years later, Majd al-Molk made a more successful attempt; he not only once again accused the brothers of collaborating with the Mamluks, but also stealing hefty amount of riches from the treasury. Whilst Shams al-Din avoided punishment with the help of Hulagu's widow, his brother Ata-Malik was arrested, but later released in late 1281 due to interference of Mongol princes and princesses, only to return to jail a few months later due being the target of further accusations. The accusations towards Shams al-Din also made Abaqa appoint Majd al-Mulk as his joint vizier, which considerably reduced Shams al-Din's authority.