We demonstrated that rh‐B4galt1 markedly improved neurological function, reduced cerebral infarct volume and preserved the completeness of blood–brain barrier (BBB) for preventing damage. Here, B4GALT1 is linked to infarction.