A stroke happens when the brain is deprived of oxygen. The most common cause of this is a blood clot cutting of oxygen supply to the brain or a vessel supplying blood to the brain bursts.
The longer the brain is deprived of oxygen, the more damage caused. That is why quick, accurate diagnosis of a stroke is crucial.