On June 2, 1967, Ohnesorg participated in a protest held near the Deutsche Oper, aimed against the state visit of the Shah of Iran, Mohammad Reza Pahlavi, who was attending a performance of Mozart's The Magic Flute at the Deutsche Oper that night.
Ohnesorg was a student of Romance and German studies.