There was an Islamist revolution in 1979 in Iran. The new rulers despised Israel long before attaining power. Before that the two countries had excellent relations.