Moscow's ties with the Islamic Republic of Iran underwent dramatic fluctuations following Ayatollah Ruhollah Khomeini's triumphant return to Tehran in 1979. After a prolonged implosion, they fitfully expanded, shaped not only by the rush of current events but by centuries of ingrained practices and prejudices.