The function of TAP2 (transporter 2, ATP binding cassette subfamily B member, ENSG00000204267) is as follows. ABC transporter associated with antigen processing. In complex with TAP1 mediates unidirectional translocation of peptide antigens from cytosol to endoplasmic reticulum (ER) for loading onto MHC class I (MHCI) molecules (PubMed:25377891, PubMed:25656091). Uses the chemical energy of ATP to export peptides against the concentration gradient (PubMed:25377891). During the transport cycle alternates between 'inward-facing' state with peptide binding site facing the cytosol to 'outward-facing' state with peptide binding site facing the ER lumen. Peptide antigen binding to ATP-loaded TAP1-TAP2 induces a switch to hydrolysis-competent 'outward-facing' conformation ready for peptide loading onto nascent MHCI molecules. Subsequently ATP hydrolysis resets the transporter to the 'inward facing' state for a new cycle (PubMed:11274390, PubMed:25377891, PubMed:25656091). Typically transports intracellular peptide antigens of 8 to 13 amino acids that arise from cytosolic proteolysis via IFNG-induced immunoproteasome. Binds peptides with free N- and C-termini, the first three and the C-terminal residues being critical. Preferentially selects peptides having a highly hydrophobic residue at position 3 and hydrophobic or charged residues at the C-terminal anchor. Proline at position 2 has the most destabilizing effect (PubMed:11274390, PubMed:7500034, PubMed:9256420). As a component of the peptide loading complex (PLC), acts as a molecular scaffold essential for peptide-MHCI assembly and antigen presentation (PubMed:1538751, PubMed:25377891, PubMed:26611325). {ECO:0000269|PubMed:11274390, ECO:0000269|PubMed:1538751, ECO:0000269|PubMed:25377891, ECO:0000269|PubMed:25656091, ECO:0000269|PubMed:26611325, ECO:0000269|PubMed:7500034, ECO:0000269|PubMed:9256420}.