Masked ICE agents pepper-sprayed a man during an encounter last month, leaving him unable to walk.

Edgar Guerrero Romo had pulled up outside his Oakland, California, home on Oct. 17 when the agents surrounded his car, demanding that he get out. The truck driver saw an unmarked black SUV following him around the city.

Disturbing bodycam footage released by the U.S. District Court showed the masked men smash their way into his car and drag him out. For over half an hour, Guerrero Romo struggled with the agents, eventually landing in a hospital for several days and being told that he won't be able to walk properly for months.

• Trump orders Putin to pull back from 'complete bloodbath' in Europe

• Trump's Mar-a-Lago Thanksgiving blacklist 'revealed' as two of his children miss celebrations

"The doctor told me the muscle had broken down from so much force," Guerrero Romo wrote a court declaration for a habeas corpus petition. "The diagnosis is for rhabdomyolysis (muscle breakdown) and traumatic neuropraxia/neuralgia (nerve damage)... They expect it will need months to heal."

Guerrero Romo said he resisted because his arrest was illegal and he had permission to be in the U.S. Three days after his arrest, Judge Noel Wise released him after ruling that his detention likely violated his constitutional right to due process.

Click here to follow the Mirror US on Google News to stay up to date with all the latest news, sports and entertainment stories.

Edgar Guerrero Romo

Wise said there was no justification for arresting Guerrero Romo, who was given protection from deportation in 2018 and deemed not to be a "flight risk or a danger to the community," according to court records.

Guerrero Romo was brought to the U.S. from Mexico as a teenager by his family in 2002 and was placed in removal proceedings after a DUI arrest in 2012. He applied for asylum and was protected from deportation under the 2018 ruling while his case was pending in immigration court.

Since then, he has consistently attended ICE check-ins and has a valid work permit until 2029.

ICE claimed to have an arrest warrant and pressed a phone to his car window to show an administrative warrant.

However, an administrative warrant isn't a court-issued order, but rather an ICE internal document authorizing arrests in public places of people suspected of immigration violations.

Guerrero Romo was on private property, and there was no reason to suspect he was violating immigration laws, the court ruled. During the arrest, he demanded to see a judicial warrant and refused to leave his car as he argued with ICE agents for 10 minutes.

Edgar Guerrero Romo

"This guy is basically asking for physical extraction," one of the agents said, according to the bodycam footage.

"If you get out of the car, we can preserve your vehicle, give you your keys, you'll be able to have your phone calls," said another agent. "Otherwise, if you don't open the door, I'm going to break the window and I'm going to take you out."

Moments later, the agents smashed the car window, sending glass shards over Guerrero Romo. During the arrest, Guerrero Romo called 911, claiming he was being kidnapped.

Guerrero Romo said that his family had completed the proper paperwork for immigration, but the agents continued to twist and contort his body, causing him great pain. After about 30 minutes, the agents overpowered him and dragged him from the car, throwing him onto the ground.

Guerrero Romo was seen bleeding from a gash on his forehead. He needed a week before he could return to work, but he still can't walk normally.

"Mentally, I am still afraid," he wrote in the court declaration. "I do not leave the house much now, as I worry that they could arrest me again."

The Department of Homeland Security didn't answer questions about specific cases, but insisted that its agents followed the law. "ICE law enforcement officers are trained to use the minimum amount of force necessary to resolve dangerous situations to prioritize the safety of the public and our officers," the agency said.

"Officers are highly trained in de-escalation tactics and regularly receive ongoing use of force training, and they are entrusted with upholding the rule of law and are held to the highest standards of professionalism, integrity, and ethical conduct."