Although official recognition was limited, Iran and Israel cooperated on security, military matters, oil, and intelligence until 1979. This alliance, based on shared interests and Western orientation, was abruptly ended by the Islamic Revolution in 1979. Iran, which had formally recognized Israel in the 1950s, withdrew all formal recognition after the revolution.