India played a balancing act in maintaining its ties with the United States and Iran, as External Affairs Minister S Jaishankar visited Tehran soon after he and Defence Minister Rajnath Singh held the second India-America 2+2 dialogue with their counterparts in Washington D.C.