Endoplasmic reticulum aminopeptidase 2 (ERAP2) is a key enzyme involved in the trimming of antigenic peptides presented by Major Histocompatibility Complex class I. It is a target of growing interest for the treatment of autoimmune diseases and in cancer immunotherapy. However, the discovery of potent and selective ERAP2 inhibitors is highly challenging. Herein, we have used kinetic target-guided synthesis (KTGS) to identify such inhibitors. Cocrystallization experiments revealed the binding mode of three different inhibitors with increasing potency and selectivity over related enzymes. Selected analogues engage ERAP2 in cells and inhibit antigen presentation in a cellular context. 4 d (BDM88951) displays favorable in vitro ADME properties and in vivo exposure. In summary, KTGS allowed the discovery of the first nanomolar and selective highly promising ERAP2 inhibitors that pave the way of the exploration of the biological roles of this enzyme and provide lead compounds for drug discovery efforts.