During your menstrual cycle, levels of hormones such as oestrogen and progesterone rise and fall. Hormone changes are thought to be the biggest contributing factor to many of the symptoms of PMS.
The fact that PMS improves during pregnancy and after the menopause, when hormone levels are stable, supports this theory.