On 16 October 2007 Putin visited Tehran, Iran to participate in the Second Caspian Summit, where he met with Iranian leader Mahmoud Ahmadinejad. Other participants were leaders of Azerbaijan, Kazakhstan, and Turkmenistan. This is the first visit of a leader from the Kremlin to Iran since Joseph Stalin's participation in the Tehran Conference in 1943. At a press conference after the summit Putin said that "all our (Caspian) states have the right to develop their peaceful nuclear programmes without any restrictions". During the summit it was also agreed that its participants, under no circumstances, would let any third-party state use their territory as a base for aggression or military action against any other participant.