Bacterial vaginosis is diagnosed through clinical criteria, including vaginal discharge, vaginal pH greater than 4.5, and the presence of clue cells in a wet mount. The treatment typically involves antibiotics such as metronidazole or clindamycin. It's important to follow the prescribed regimen to prevent recurrence.