chronic yeast infection

I had a yeast infection 3 times in the span of around 2 or 3 months, each time I took monistat it went away but what could've caused it so many times?