Here, we present a protocol for the purification of MHC class I and class II peptide complexes from mouse and human cell lines providing high-quality immunopeptidomics data. The protocol focuses on sample preparation using commercially available antibodies.