A former U.S. Homeland Security special agent who sexually assaulted two women, telling them he was "above the law," was found guilty Wednesday of violating their civil rights, federal prosecutors said.

John Jacob Olivas, 48, of Riverside, was convicted of three counts of deprivation of rights under color of law. He could face up to life in prison when he is sentenced in March.

Olivas attacked both women in 2012, prosecutors said.

TEXAS, ARIZONA AND 17 OTHER STATES ASK SCOTUS FOR STAY IN ELIMINATING TITLE 42 BORDER PROTOCOL

One victim testified that Olivas tried to rape her "after making it clear to her that the police would not be responsive to any report she would make about Olivas because he was ‘above a cop,' and ‘untouchable' and ‘invisible' to police" because of his federal position, the due to his position as a federal agent, according to a statement from the U.S. attorney general's office.

California sex assault

A former Homeland Security special agent who assaulted two women has been charged. (Fox News)

TEXAS BORDER PATROL FACILITY OVERWHELMED WITH ILLEGAL IMMIGRANTS AS TITLE 42 EXPIRATION LOOMS

The woman also said Olivas told her that he could make her "disappear," have her arrested on fake charges or have her children taken from her, the statement said.

Olivas also raped another woman on two separate occasions. She testified that Olivas made comments that led her to believe he couldn't be touched by the criminal justice system, and before the first rape threatened her with his service gun, authorities said.

CLICK HERE TO GET THE FOX NEWS APP

Olivas showed his Homeland Security credentials to both victims and asserted "that he was above the law," prosecutors wrote in court documents.