While not mandatory, treating the partner can help prevent infection in women and reduce the likelihood of recurrences in men.