The invention disclosed the use of timosaponin BII in preparing the drug orproduce of preventing and treating stroke. The experiments prove thattimosaponin BII can improve the neurologic deficit of cerebral ischemic ofrat, reduce infarctus size, and decrease brain water edema, improve bloodflow, reduce inflammation injury of cerebral ischemic.