Post-exposure prophylaxis (PEP) is the treatment given to prevent HIV infection after a potential exposure, such as a needlestick injury or unprotected sexual contact with an HIV-positive individual. It involves a combination of antiretroviral drugs and should be started within 72 hours of exposure for maximum effectiveness.