The invention relates to a rosiglitazone analogue, a preparation method and application thereof. Described compound has the structure shown in following formula (I), R 1 represents C that is unsubstituted or optionally substituted by 3‑10 Cycloalkyl: halogen, nitro, cyano, hydroxyl, mercapto, C 1‑6 Alkyl, C 1‑6 Alkoxy, halo C 1‑6 Alkyl; A 1 、A 2 The same or different, independently of each other represents C that is unsubstituted or optionally substituted by 6‑14 Aryl or 5‑14 membered heteroaryl: halogen, nitro, cyano, hydroxyl, mercapto, C 1‑6 Alkyl, C 1‑6 Alkoxy, halo C 1‑6 Alkyl; n is an integer of 0-5; R 2 means H or C 1‑6 Alkyl; R 3 Represents H; X, Z, W are the same or different, and independently represent S or O; represent a single bond or a double bond, and when it is a single bond, there is R 3 ; When double bond, R is absent 3 . The invention also provides its preparation method and its application in the preparation of medicines for treating or preventing diabetes.