The invention relates to a method for preparing AS-605240 and an application thereof on medicines for treating inflammatory diseases. An improvement of the preparation method disclosed to the international patent is supplied to 5-quinoxaline methylene-2, 4-thiazolidinedione (AS-605240 with a structural formula I). 3, 4-diaminotoluene and glyoxal water solution as raw materials are relatively easy to obtain, reactive reagent, such as sodium bicarbonate, N-bromosuccinimide, carbon tetrachloride, and the like in each step is cheap and easy, and the reaction condition is mild. A great deal of mouse experimental curative effect observation of myocarditis, acute and chronic hepatitis, acute colitis and pancreatitis, which is induced by concanavalin A, is performed by the AS-605240, and the favorable curative effects of the AS-605240 are all confirmed. The prior TZDs, such as troglitazone, and the like are mainly used for aspects on treating diabetes mellitus, angiocardiopathy, and the like. In recent years, a study confirms that the AS-605240 protects the mouse joint and treats rheumatoid arthritis through restraining an osphatidylinositol 3 (PI3K) kinase gamma subtype signal way, therefore, the AS-605240 application on medicines for treating the inflammatory diseases opens up a new medical treatment field on the discovery of thiazolidinedione compound.