Yeast infection

For the past year I have gotten three yeast infections every 3 months before or after my cycle why and what can I do to prevent it