Stroke is a global issue with minimal treatment options and no current clinical therapy for regenerating the lost brain tissue. Here we describe methods for creating precise photothrombotic stroke in the motor cortex of rodents and subsequent injection of hydrogel biomaterials to study their effects on tissue regeneration after stroke.