Just curious

Ash
What is a yeast infection? I mean i heard of it but how do you get it? Just wondering i a friend who also preg and said she had a yeast infection and had to take medicine.