Disclosed are a benzoxazine oxazolidinone compound shown by a general formula (I), an optical isomer thereof or a pharmaceutically acceptable salt thereof, a preparation method thereof, and an application thereof in preparing a drug for treating an infectious disease and in particular, an infectious disease caused by multidrug resistant bacteria.