India's relationship with Iran has been uneven owing to external factors. This article traces the role of the Pakistan factor in this relationship, wherein the religious identity of a fellow Islamic nation, the strategic outlook towards Afghanistan, and energy relations between the three countries are discussed. The article outlines the Pakistani primacy in the India–Iran strategic relationship and showcases how Afghanistan is the glue for India–Iran relations despite the breaks in their continuing relationship.