What is the difference between PrEP and PEP?

The key difference between PrEP and PEP is the timing of the treatment. 

PrEP, or pre-exposure prophylaxis, is designed to be taken daily as a precaution in case of an exposure to HIV that may occur.  

PEP is post-exposure prophylaxis and is intended to be taken after a possible exposure to HIV.