The present invention relates to the use of potent selective LSD1 inhibitors and LSD1/MAO-B inhibitors for treating or preventing viral infections. Furthermore, the present invention relates to the new use of cyclopropylamine acetamide derivatives or cyclopropylamine derivatives, as defined herein, for treating or preventing viral infection and treating or preventing reactivation of a virus after latency.