A former Florida prosecutor has been busted for pressuring a woman into having sex with him to get her charges dropped, according to authorities.

Miami lawyer Juan Mercado, 29, was an assistant state attorney when he told the woman charged with domestic battery that he would “make her case go away” in exchange for sex, according to a release about his arrest.

Mercado was not the assigned prosecutor, but he accessed records and provided information and advice to the woman, according to the Florida Department of Law Enforcement.

“Mercado had a sexual relationship with a woman in exchange for offering to help with her pending criminal case,” the department said, without detailing when it took place.

Mercado — who had since left the State Attorney’s Office and opened a private practice in Miami — was busted Wednesday on bribery charges.

Miami-Dade’s jail records show that Mercado has posted bond, though the amount wasn’t available. It wasn’t clear if he had an attorney who could comment on his behalf.

With Post wires