A new report from the American Enterprise Institute suggests that Mahmoud Ahmadinejad’s days may be numbered as the president of Iran after he failed to seize control of the Intelligence Ministry.

In a somewhat counterintuitive move for an authoritarian regime, AEI fellow Ali Alfoneh writes that Ahmadinejad may be removed through an impeachment process after continued clashes with Supreme Leader Ali Khamenei. The Islamic Revolutionary Guard Corps is siding with Khamenei to restrict Ahmadinejad’s power, thereby making it (even if opportunistic) the most important arbiter of power in Iran, according to Alfoneh.