Boric acid is primarily used as a vaginal suppository to treat recurrent yeast infections, bacterial vaginosis (BV), and associated odors by restoring vaginal pH balance. It acts as an antifungal and antibacterial agent, often effective against treatment-resistant infections.