The peptide transporter associated with antigen processing (TAP) is crucial for class I-restricted antigen presentation because it transfers cytosolic peptides into the endoplasmic reticulum (ER) lumen for class I binding. It is therefore not surprising that TAP is targeted for inactivation by many viruses. Herpesviruses have been very successful in designing various proteins that inactivate TAP. We summarise current knowledge on the class I antigen presentation pathway and the function, structure and action of TAP and its viral inhibitors.