The present invention relates to the field of medicaments, and in particular relates to 3H-1,2-dithiocyclopentene-3-thione compounds and application thereof. 3H-1,2-dithiocyclopentene-3-thione compounds disclosed by the invention have new structures shown in formula I or formula II. Proved by experiments, 3H-1,2-dithiocyclopentene-3-thione compounds can directly protect neurons in a cellular model, and can significantly restrain excessive inflammatory responses of brain inflammatory cells and by using 3H-1,2-dithiocyclopentene-3-thione, focal ischemic cerebral infarct volumes of mice can be remarkably reduced in an animal model. Therefore, the invention provides the application of 3H-1,2-dithiocyclopentene-3-thione compounds and pharmaceutically acceptable salts thereof in the preparation of medicaments for preventing or treating cerebral apoplexy diseases.