The present invention provides an organoboron compound of formula I, or a salt thereof, and a pharmaceutical composition thereof, and the use of the organoboron compound and the pharmaceutical composition for treating nontuberculous mycobacterial infections.