It is believed that their strong electric charges attract them either to the viruses (thus inactivating them) or to the cells of the vaginal wall (thus covering those cells like a coat of paint and preventing viruses from entering the body).
ECONOMIST: HIV microbicides