(2E)-Eicosenoic acid is an inhibitor of Mycobacterium tuberculosis protein tyrosine phosphatase A (PtpA), exhibiting potent inhibitory activity against PtpA with an IC50 in the low micromolar range; it can be used in research on Mycobacterium tuberculosis infection.