Gov. Robert Bentley was booked into jail Monday afternoon on charges stemming from an investigation into an alleged affair with an aide.

Brynn Anderson / AP Gov. Robert Bentley with aide Rebekah Mason on Nov. 4, 2014.

Embattled Alabama Gov. Robert Bentley was arrested and resigned from office Monday, bringing to a close a long-running sex and campaign finance scandal that rocked the statehouse. Bentley, 74, was booked Monday afternoon into the Montgomery County Jail on two misdemeanors for campaign finance violations stemming from an alleged affair with an aide. Moments later, he appeared in court and pleaded guilty to both charges, and shortly thereafter submitted his letter of resignation.

Montgomery County Jail Bentley's booking photo

At a news conference, Bentley said that he has "not always made the right choice," but did not elaborate on his mistakes or comment on the charges he pleaded guilty to. "I have let you and our people down," be said, adding, "the time is come for me to look at new ways to serve the people of our great state." "I love this office," he said. "However, I realize that there are things more important than a political office."

As a result of his guilty plea, Bentley was fined $2,000 and ordered to perform 100 hours of volunteer service, WBRC reported. He also agreed not to run for office again, and will have to pay back campaign funds. A judge suspended a 30-day jail sentence, meaning Bentley will not spend any time behind bars. Ellen Brooks, of the Alabama Attorney General's office, said that as a result of the resignation, "the investigation into former Gov. Bentley is over."

Lt. Gov. Kay Ivey succeeded Bentley on Monday evening, becoming Alabama's second-ever female governor. The scandal surrounding Bentley first ignited in March 2016, when the governor fired Spencer Collier, then the head of the Alabama Law Enforcement Agency. After her termination, Collier said he had seen evidence of, and investigated, an affair between the governor and his former political advisor and campaign spokesperson, Rebekah Mason.

Bentley denied having an affair with Mason, but by April 2016 Alabama lawmakers were considering impeachment charges against the governor. During the ensuing months, investigators issued numerous subpoenas seeking information about the alleged affair. In January, Bentley attended President Trump's inauguration with Mason and her husband, WIAT reported. The case culminated last week when the House Judiciary Committee released a damning report detailing Bentley's alleged misdeeds. The report characterizes Bentley as paranoid and accuses him of directing “law enforcement to advance his personal interests” by, among other things, telling officers to break up with Mason for him.

Brynn Anderson / AP Rebekah Mason claps during a speech by Bentley in February.