A nitromidazole compound represented by general formula (1) or an optical isomer thereof or a pharmaceutically acceptable salt thereof, and a preparation method therefor, and use thereof in manufacturing drugs for treating infectious diseases caused by mycobacterium tuberculosis. Specific groups in general formula (1) are as defined in the specification.