How does PrEP work?

If a person taking PrEP is exposed to HIV, the PrEP drugs they have taken prevents HIV from entering their cells and from replicating. This stops HIV from establishing itself and stops the person taking PrEP from becoming infected with HIV.