a white naval officer seated and addressing a group

President Donald Trump has nominated Vice Adm. Michael Gilday to lead the Navy, after his Senate-confirmed pick suddenly decided to retire.

Earlier this month, Adm. William Moran, who was slated to become the next chief of naval operations on Aug. 1, announced he would retire because of his association with a former Navy public affairs officer, who was investigated two years ago for inappropriate conduct.

Moran, who is a four-star admiral serving as the deputy chief of naval operations, was highly regarded, but Navy Secretary Richard Spencer said Moran’s contacts with the former public affairs officer called into question his judgment.

Trump’s new nominee is currently the director of the Joint Staff and previously commanded the U.S. 10th Fleet and Fleet Cyber Command, the Navy’s cyber component.

If confirmed, he would be the first officer to lead a military service who has also commanded a service cyber component, according to Fifth Domain.