PHOENIX (3TV/CBS5) -- The prosecutor best known for helping put Jodi Arias in prison for life has lost his job. Juan Martinez has been fired from the Maricopa County Attorney’s Office. He is appealing his dismissal.

Martinez has been facing a number of misconduct allegations. He was accused of leaking a juror's name in the Arias case to a blogger with whom he was in a sexual relationship, and then lying to investigators about it. Martinez is also accused of staring at a court reporter during the Arias trial and making comments about her appearance that made her feel uncomfortable.

A law firm also filed an ethics complaint, claiming Martinez wrote a book about the Arias case while the trial was still going on. They also say he wrote the book on County time, at taxpayers' expense. Martinez was reprimanded by the county prosecutor’s office in 2018 for inappropriate and unprofessional conduct toward female law clerks.

+2 Lawyers file ethics complaint against Arias prosecutor, County Attorney Montgomery The ethics complaint center around the writing of Juan Martinez's book and lack of supervision.

In March of 2019, the State Bar of Arizona filed a formal complaint against Martinez.

State Bar of Arizona files formal complaint against Arias prosecutor Alleging misconduct by Maricopa County Attorney Juan Martinez, the State Bar of Arizona has filed a formal complaint against the Jodi Arias prosecutor.

In September of 2019, he was reassigned. Martinez was moved from prosecuting first-degree murder cases to the auto theft bureau.

Jodi Arias prosecutor Juan Martinez reassigned Juan Martinez, best known as the high-profile prosecutor in the Jodi Arias case has been reassigned.

In February of 2020, Martinez was placed on paid leave.

On Friday, Maricopa County Attorney Allister Adel released the following statement:

Juan Martinez was dismissed from the Maricopa County Attorney’s Office on February 21, 2020. On March 2, 2020, an Appeal of the Dismissal was filed by Mr. Martinez and therefore, this office is unable to provide any additional comment on the dismissal at this time. As County Attorney, I am committed to following public records laws and demonstrating transparency in the decision making of this office and have provided these documents in support of these ideals.

Jodi Arias was sentenced to life in prison for first-degree murder in the death of Travis Alexander at his home in Mesa. The case turned into a media circus due to the salacious and violent details of what happened.