During an ischemic stroke normal brain endothelial function is perturbed, resulting in blood brain barrier (BBB) breakdown with subsequent infiltration of activated inflammatory blood cells, ultimately leading to neuronal cell death. Kruppel-like factor 2 (KLF2) is regulated by flow, is highly expressed in vascular endothelial cells (ECs), and serves as a key molecular switch regulating endothelial function and promoting vascular health. In this study we sought to determine the role of KLF2 in cerebrovascular function and the pathogenesis of ischemic stroke. Transient middle cerebral artery occlusion was performed in KLF2-deficient (KLF2(-/-)), KLF2 overexpressing (KLF2(tg)), and control mice, and stroke volume was analyzed. BBB function was assessed in vivo by real-time neuroimaging using positron emission tomography and Evan's blue dye assay. KLF2(-/-) mice exhibited significantly larger strokes and impairment in BBB function. In contrast, KLF2(tg) mice were protected against ischemic stroke and demonstrated preserved BBB function. In concordance, gain- and loss-of-function studies in primary brain microvascular ECs using transwell assays revealed KLF2 to be BBB protective. Mechanistically, KLF2 was demonstrated, both in vitro and in vivo, to regulate the critical BBB tight junction factor occludin. These data are first to identify endothelial KLF2 as a key regulator of the BBB and a novel neuroprotective factor in ischemic stroke.