In Hamburg, he also worked with Mohammad Khatami and was among his influences. Since the early 1960s, he was involved in activities against the monarchy and was arrested several times by the Shah’s secret police, the SAVAK.Beheshti joined Ayatollah Khomeini in Najaf, Iraq, where the latter was in exile. There he became part of Khomeini’s underground movement.