The present invention relates to a pharmaceutical composition for preventatively treating headaches, containing: a carbamate compound of chemical formula 1 or a pharmaceutically acceptable salt, solvent or hydrate thereof; and a pharmaceutically acceptable carrier. According to the present invention, the pharmaceutical composition can effectively prevent a headache, more specifically, headaches caused by cortical spreading depression, and particularly, chronic headaches including migraines.