Yeast infections

Three months ago, I had my first yeast infection along with my second UTI, at the same time as my period. And now, a week before my period, I got my second yeast infection. I do have sex but I'm trying to figure out what is causing them.