The aim of the present study was to determine the effects of ulinastatin (UTI) on brain injury in rats subjected to cardiopulmonary resuscitation (CPR) following asphyxial cardiac arrest (CA) and identify the underlying mechanisms. In total, 100 healthy male Wistar rats were randomly divided into control and treatment groups (n=50). After 4 min of asphyxial CA, all the rats were immediately subjected to CPR. The treatment group animals were administered 15 mg/kg UTI at the onset of resuscitation. The mortality rate in the two groups was recorded at 24 h post-resuscitation. In addition, neurological function was evaluated at 24, 48 and 72 h post-resuscitation using a neurological deficit scale (NDS). Furthermore, the effects of UTI on the Toll-like receptor 4 (TLR4) signaling pathway in brain tissues were determined by assessing TLR4 mRNA expression, nuclear factor (NF)-κB activity and tumor necrosis factor (TNF)-α and interleukin (IL)-6 levels at 1, 3, 6, 12, 24, 48 and 72 h post-resuscitation. After 24 h, the mortality rate significantly decreased in the treatment group when compared with the control animals (10 vs. 30%; P<0.05). Additionally, an overt improvement was observed in the NDS score following UTI treatment when compared with the control (P<0.01). Finally, statistically significant decreases in the levels of TLR4 mRNA expression, NF-κB activity and TNF-α and IL-6 were observed in the treatment group at each time point (P<0.01). Therefore, UTI treatment at the onset of CPR significantly inhibits the TLR4 signaling pathway, thereby alleviating the inflammatory responses following resuscitation and improving neurological function.