A small girl miraculously walked away from a crash moments after being ejected from an SUV that flipped during a police chase in Texas.

Police pursuing robbery suspects in Lubbock on Saturday recorded the accident on a camera mounted on the dashboard in their cruiser. As the vehicle careens out of control and flips, the 18-month girl flies through an open window, according to KBCD.

The girl is almost hit by the tumbling vehicle, which landed on its four wheels. She then scurries after the car and is grabbed by one of the four suspects arrested by police.

Cops were pursuing the car following a complaint from 19-year-old Chelsea Betenbough that she was mugged in a parking lot by 17-year-old Kenny Shawn Jimenez.

When Jimenez allegedly hopped into the SUV, Betenbough saw that there were was a 16-year-old boy, two 14-year-old girls and the baby inside, according to Everything Lubbock. The four teens were charged with aggravated robbery, injury to a child, unauthorized use of a vehicle, evading arrest, and organized crime.

The toddler was taken to a hospital and was found to have only minor injuries.