According to a study from the University of Munster in Germany, sexual activity can lead to "partial or complete relief" from migraines. They attribute this to the release of endorphins during sex, which act as natural painkillers.