This article was produced in partnership with the Pulitzer Center on Crisis Reporting.

GUANTÁNAMO BAY, Cuba — The commander of the prison at Guantánamo Bay has been fired seven weeks before he was to leave the job.

Adm. Craig S. Faller relieved Rear Adm. John C. Ring for a “loss of confidence in his ability” to lead, the United States Southern Command said on Sunday in a brief statement. Admiral Ring’s deputy, Brig. Gen. John F. Hussey, is now the acting commander.

Col. Amanda Azubuike, a spokeswoman for the Southern Command, which oversees the prison, said the decision to remove Admiral Ring had nothing to do with a recent news media visit he hosted there. She said only that he was let go after a monthlong investigation that was opened in March.

Admiral Faller, the leader of the Southern Command, and Admiral Ring met on Saturday at the command’s headquarters in Doral, Fla., where Admiral Faller “personally informed” Admiral Ring that he was being fired. Admiral Ring “will be temporarily assigned duties elsewhere” in the Southern Command, Colonel Azubuike said.