Thrush

After the first time I had unprotected sex, I got thrush and assumed it was just because I wasn't lubricated enough. I have had it twice since then (over about 9 months) just out of the blue and I am wondering if I'm just susceptible to it like I know some women are or if it's for another reason. Any advice on what to do or how to treat it?