Caffeine contributes to cramps and can cause irregular periods. Moreover, it can cause mood swings and sleep difficulties. It’s recommended to avoid drinking coffee during your period. You can drink teas instead, though many of them contain caffeine, but it has less caffeine than coffee. It’s also recommended to avoid drinking energy drinks.