Conversation so far:
Who is Ali Khamenei?
Ali Khamenei is the second and current Supreme Leader of Iran
What time period did Ali Khamenei's activities occur?
Ali Khamenei was one of Iran's leaders during the Iran–Iraq War in the 1980s.
Did Ali Khamenei hold any political office?
Ali Khamenei was elected President of Iran by a landslide vote (97%) in the October 1981 Iranian presidential election.

Question: Was he ever arrested?
Self-contained rewrite: Was Ali Khamenei ever arrested?