Why does amoxicillin cause a yeast infection after taking it?

Why? And when will it resolve? After I complete the antibodies?