Why do I become so moody during my periods?

I tend to be so moody, agitated and at times depressed, but I have noticed that this happens in the middle of my menstruation cycle. Could the mood swings have something to do with ovulation? What can one do to cope with this?
no image
Dr. Rachna Pande