Stroke is considered to be an acute cerebrovascular disease, including ischemic stroke and hemorrhagic stroke. The high incidence and poor prognosis of stroke suggest that it is a highly disabling and highly lethal disease which can pose a serious threat to human health. Nitric oxide (NO), a common gas in nature, which is often thought as a toxic gas, because of its intimate relationship with the pathological processes of many diseases, especially in the regulation of blood flow and cell inflammation. However, recent years have witnessed an increased interest that NO plays a significant and positive role in stroke as an essential gas signal molecule. In view of the fact that the neuroprotective effect of NO is closely related to its concentration, cell type and time, only in the appropriate circumstances can NO play a protective effect. The purpose of this review is to summarize the roles of NO in ischemic stroke and hemorrhagic stroke.