JEFFERSON CITY, Mo. (AP) -- On a dreary overcast day, Missouri Gov. Eric Greitens stood in a light rain near the Governor's Mansion and recounted his grueling training as a Navy SEAL officer to suggest he would never quit fighting allegations of sexual misconduct and campaign finance violations.
Less than two weeks later, Greitens announced Tuesday that he is quitting with his mission incomplete.
"The time has come, though, to tend to those who have been wounded and to care for those who need us most," said the Republican governor, his voice cracking while his team members struggled to hold back tears. "So for the moment, let us walk off the battlefield with our heads held high."
Greitens' departure will become official at 5 p.m. Friday — marking a stunning political defeat for the 44-year-old, self-made warrior-philosopher who had aspirations of someday becoming president.
For those fellow Republicans who had strenuously urged his resignation, Greitens' exit provides the divided party a chance to reunify at the start of a summer campaign season in which it's seeking to unseat Democratic U.S. Sen. Claire McCaskill.
Greitens' resignation also allows him to avoid the potentially dubious distinction of becoming the first Missouri governor ever impeached. A House investigatory committee had subpoenaed Greitens to testify next Monday during a special month-long session focused solely on his potential discipline.
Fellow Republican Lt. Gov. Mike Parson — a former state lawmaker and sheriff — is to serve the remainder of Greitens' term, which runs until January 2021.
In addition to the legislative investigation , Greitens faced a felony charge in St. Louis of tampering with computer data for disclosing a donor list of The Mission Continues to his political fundraiser in 2015 without the permission of the St. Louis-based veterans' charity he founded.
A special prosecutor from Kansas City also is weighing whether to refile a recently dismissed invasion-of-privacy charge in St. Louis alleging that Greitens took and transmitted a nonconsensual photo of a partially nude woman with whom he acknowledged having an affair in 2015.
The St. Louis prosecutor's office said it had reached a "fair and just resolution" on criminal charges against Greitens now that he's leaving office, and that more details would be made public Wednesday. But the special prosecutor from Kansas City said Tuesday that her investigation is ongoing.
Greitens could face other investigations. The chairman of the House investigatory committee and an attorney representing the woman's ex-husband both have said they have shared information with FBI agents looking into the governor.
A complaint also remains pending at the Missouri Ethics Commission alleging Greitens filed a false campaign report last year about the source of the charity donor list.
On May 17, Greitens suggested to a crowd of supporters gathered for an agricultural event that wouldn't give up.
"No matter what they throw at me, no matter how painful they try to make it, no matter how much suffering they want to put me and my family through and my team through ... we are going to step forward day after day after day, and we are going to continue in our mission to fight for the people of Missouri," Greitens said then.
On Tuesday, Greitens remained defiant even while resigning.
"I am not perfect. But I have not broken any laws or committed any offense worthy of this treatment," he said. "I will let the fairness of this process be judged by history."
Greitens is a married father of two young sons. He is a Rhodes scholar with a doctoral degree in politics who traveled the world on humanitarian missions before joining the Navy. After being wounded in Iraq, he founded a veterans' charity and became a best-selling author and motivational speaker.
He campaigned as a political outsider in 2016, winning an expensive Republican gubernatorial primary and then defeating Democratic Attorney General Chris Koster in the general election to give Missouri Republicans control of the governor's mansion for the first time in eight years.
Greitens had a sometimes rocky relationship with the GOP-controlled Legislature as he pushed his agenda, once comparing them to third-graders and frequently denouncing them as "career politicians."
His support in the Capitol unraveled further after the night of Jan. 10, when a St. Louis TV station aired a report featuring an audio recording secretly made by a woman's ex-husband. In that, the woman describes how Greitens allegedly bound her hands, blindfolded her and took a compromising photo while threatening that he would distribute it if she ever spoke of their encounter. Greitens denied threatening blackmail, but hasn't directly answered questions about whether he took the photo.
A St. Louis grand jury indicted Greitens on Feb. 22 on one felony count of invasion of privacy related to the alleged photo. That prompted the Missouri House to form a special investigatory committee.
In April, the legislative panel released a report containing graphic testimony in which the woman said Greitens had restrained, slapped, shoved and belittled her during a series of sexual encounters that at times left her crying and afraid. Greitens denied any violence and said the allegations amounted to a "political witch hunt." He vowed to stay in office.
But Greitens' troubles deepened in the ensuing weeks when Republican Attorney General Josh Hawley — who is running for McCaskill's seat — referred evidence to the St. Louis prosecutor leading to the felony charge alleging misuse of the charity donor list.
A May 2 House committee report indicated that Greitens himself received the donor list while CEO of the charity and later directed political aides to work off it. Shortly before Greitens resigned Tuesday, the House panel heard a second round of testimony from former aide Michael Hafner about the charity donor list and other efforts by Greitens' campaign to conceal the original source of some political donations.
Earlier Tuesday, a judge also ruled that a secretive pro-Greitens group called A New Missouri must comply with a legislative subpoena for documents. The legislative panel also had subpoenaed other Greitens' campaign aides.