US Navy
Now playing
00:31
Admiral set to lead the US Navy abruptly retires instead
TOKYO, JAPAN - JULY 23: General view inside the stadium as fireworks go off while Naomi Osaka of Team Japan lights the Olympic cauldron with the Olympic torch during the Opening Ceremony of the Tokyo 2020 Olympic Games at Olympic Stadium on July 23, 2021 in Tokyo, Japan. (Photo by Laurence Griffiths/Getty Images)
Laurence Griffiths/Getty Images
TOKYO, JAPAN - JULY 23: General view inside the stadium as fireworks go off while Naomi Osaka of Team Japan lights the Olympic cauldron with the Olympic torch during the Opening Ceremony of the Tokyo 2020 Olympic Games at Olympic Stadium on July 23, 2021 in Tokyo, Japan. (Photo by Laurence Griffiths/Getty Images)
Now playing
02:22
Tokyo 2020 Games officially underway after yearlong delay
Now playing
07:51
Smerconish: Don't punish the vaccinated
CNN Weather
Now playing
01:43
Flash flooding continues to threaten the Southwest this weekend
Gov. Kay Ivey gives the State of the State Address to a joint session of the Alabama Legislature on Tuesday, Feb. 4, 2020, in the old house chamber of the Alabama State Capitol in Montgomery, Ala. (AP Photo/Vasha Hunt)
Vasha Hunt/AP
Gov. Kay Ivey gives the State of the State Address to a joint session of the Alabama Legislature on Tuesday, Feb. 4, 2020, in the old house chamber of the Alabama State Capitol in Montgomery, Ala. (AP Photo/Vasha Hunt)
Now playing
01:00
Alabama governor: It's time to start blaming unvaccinated folks
Pool
Now playing
02:06
WaPo: This is what Trump's PAC is spending its money on
TMFPD
Now playing
00:48
Crew battling Tamarack Fire makes narrow escape out of fire and flames
Getty Images
Now playing
01:55
'Almost giddy': Author describes Trump during Capitol riot
CNN/KTRK
Now playing
03:07
Keilar rolls the tape on Ted Cruz's 'ironic' message about political stunts
CNN
Now playing
03:06
Nurse says patients in ICU with Covid-19 begging for vaccine
AFPTV
Now playing
01:03
See protesters outside Olympics opening ceremony
Now playing
04:56
Brianna Keilar pushes back on city leader: That's anti-science
US Speaker of the House, Nancy Pelosi, Democrat of California, speaks at her weekly press briefing on Capitol Hill in Washington, DC, on July 22, 2021. (Photo by Brendan SMIALOWSKI / AFP) (Photo by BRENDAN SMIALOWSKI/AFP via Getty Images)
BRENDAN SMIALOWSKI/AFP/AFP via Getty Images
US Speaker of the House, Nancy Pelosi, Democrat of California, speaks at her weekly press briefing on Capitol Hill in Washington, DC, on July 22, 2021. (Photo by Brendan SMIALOWSKI / AFP) (Photo by BRENDAN SMIALOWSKI/AFP via Getty Images)
Now playing
01:21
Pelosi explains why she rejected GOP lawmakers from January 6 committee
Getty Images
Now playing
00:54
Nick Jonas injured during NBC Olympics special
Valerie Gordon
Now playing
00:59
Watch cattle flee as California wildfire rages
Fox News
Now playing
02:31
Tucker Carlson insults Capitol police officer
A boy receives a dose of the Pfizer/BioNTech Covid-19 vaccine at the Clalit Healthcare Services in the Israeli city of Holon near Tel Aviv on June 21, 2021, as Israel begins coronavirus vaccination campaign for 12 to 15-year-olds. - Israel is now urging more 12- to 15-year-olds to be vaccinated, citing new outbreaks attributed to the more infectious Delta variant. (Photo by JACK GUEZ / AFP) (Photo by JACK GUEZ/AFP via Getty Images)
JACK GUEZ/AFP/AFP via Getty Images
A boy receives a dose of the Pfizer/BioNTech Covid-19 vaccine at the Clalit Healthcare Services in the Israeli city of Holon near Tel Aviv on June 21, 2021, as Israel begins coronavirus vaccination campaign for 12 to 15-year-olds. - Israel is now urging more 12- to 15-year-olds to be vaccinated, citing new outbreaks attributed to the more infectious Delta variant. (Photo by JACK GUEZ / AFP) (Photo by JACK GUEZ/AFP via Getty Images)
Now playing
02:10
CDC warns of 'pandemic of the unvaccinated'

Correction: This Story has been updated to reflect that William Moran is a four-star admiral.

Washington CNN —  

A four-star US Navy admiral who was set to become the branch’s top uniformed officer is instead retiring after his judgment was questioned over a professional relationship he maintained with a former Navy public affairs official who left the service amid allegations of sexual harassment and sexual assault.

Adm. William Moran was vetted for promotion after being nominated by President Donald Trump and confirmed by the Senate in May but that plan abruptly changed Sunday when he announced his retirement.

He was expected to take over the job in August.

Adm. John Richardson, the current Chief of Naval Operations will remain in the post until a replacement can be identified, according to a statement by Secretary of the Navy Richard Spencer. Richardson can remain in the job until September.

Richardson addressed the situation in an email to Navy staff and flag officers on Monday.

“It is my sad duty to confirm to you that Adm. Moran has submitted his request to retire. The Secretary of the Navy has accepted his request. He will not serve as the next CNO,” Richardson wrote, according to a copy of the email obtained by CNN.

“This is an extremely difficult situation, but importantly, this matter strongly reinforces the importance of trust, and the high standards of behavior needed to secure that trust. The American people expect this from us. We must expect and enforce this standard for ourselves,” he wrote.

Pentagon vacancies

Moran’s departure comes at a time when the Pentagon continues to operate without a Senate-confirmed secretary of defense. Many other senior military roles remain unfilled or are filled by officials in acting roles.

Those vacancies are a reflection of the Department of Defense’s ongoing struggle to establish an unprecedented transition plan aimed at ensuring continuity of leadership at the highest levels while there is still no confirmed secretary of defense following the dramatic implosion of Patrick Shanahan’s nomination last month.

According to Spencer, Moran retired from the service rather than take on the role of chief of naval operations due to a situation where he “maintained a professional relationship with an individual who was held accountable and counseled for failing to meet the values and standards of the Naval profession.”

“While I admire his faithful service and commitment to the Navy, this decision on his part to maintain that relationship has caused me to call his judgment into question,” Spencer wrote.

Moran said in a separate statement he “made this difficult decision based on an open investigation into the nature of some of my personal email correspondence over the past couple of years and for continuing to maintain a professional relationship with a former staff officer, now retired, who had while in uniform been investigated and held accountable over allegations of inappropriate behavior.”

“To be clear, my decision to maintain this relationship was in no way an endorsement or tacit approval of this kind of conduct,” he added.

“I understand how toxic it can be to any team when inappropriate behavior goes unrecognized and unchecked … Every Sailor is entitled to serve in an environment free of harassment or intimidation,” Moran said.

Both statements from Moran and Spencer note the situation arose from a professional relationship over the course of Moran’s career with the Navy, rather than a private relationship.

Professional relationship under scrutiny

While Spencer did not provide any details about the unnamed individual, three officials told CNN that Moran’s resignation stems in part from continued contact with Chris Servello, a former Navy public affairs adviser to Adm. Richardson, who was removed from his post in 2017.

Servello retired honorably from the Navy last May after being reprimanded for his conduct at a Christmas party in December 2016 where he was accused of making unwanted sexual advances on a junior officer while dressed as Santa Claus.

No charges were filed but the Pentagon Inspector General did launch a wider investigation looking into the handling of that incident by Adm. Richardson, according to multiple Navy officials.

“We initiated an investigation that assessed Navy Admiral John M. Richardson’s response to sexual harassment and sexual assault allegations against a member of his personal staff,” the report says.

Multiple Navy officials told CNN that Moran’s decision was prompted by revelations that he maintained a professional relationship with Servello after the investigation into his behavior.

“I’m aware of Admiral Moran’s decision and it’s hard not to feel disappointment and disbelief. This is terrible news for the Navy. Beyond that I have nothing else to add,” Servello said in a statement to CNN.

In his email to Navy staff on Monday, Richardson did not name Servello but did note that Moran “maintained an off-the-record collaboration on high-level official Navy business with an officer who had previously been held accountable for inappropriate behavior towards junior female officers.”

“Adm. Moran recognized that the nature of this collaboration made it untenable for him to serve as the CNO, which is why he requested to retire,” Richardson added.

CNN has reached out to the Pentagon for additional comment.

CNN’s Barbara Starr and Ryan Browne contributed to this report.