What causes diarrhea during menstruation?

Dear Doctor, I always develop diarrhea during my menstruation periods. At first, I would think it was the food I used to eat during my periods but for the last three years, each month I get diarrhea whenever I’m in my periods. What could be causing this?
The New Times
Times Reporter