ERAP1 activity was detectable by two-photon imaging on tumour sections at an imaging depth of 50–120 μm. Here, ERAP1 is linked to neoplasm.