But supporting Ahmadinejad turned out to be a costly decision for Khamenei – and for the Islamic Republic. Instead of aligning himself with Khamenei, as expected, Ahmadinejad began to promote a nationalist, anti-clerical agenda, effectively using Khamenei’s resources to challenge the supreme leader’s authority and to establish his own economic network and sphere of influence.