The NATO-led coalition in Afghanistan on Monday turned over to Afghan authorities complete control of the Bagram prison, where many inmates are being held without trial or charge.

"The transfer of the detention facility is an important part of the overall transition of security lead to Afghan National Security Forces," U.S. Gen. Joseph Dunford, commander of the International Security Assistance Force, said.

The transfer was completed at a ceremony where Dunford and Afghan Defense Minister Bismillah Mohammadi signed a memorandum of understanding in which the detainees are guaranteed fair and humane treatment.

The jail was originally located at the U.S. Bagram airbase, 40 kilometers (25 miles) from Kabul, but was shifted in 2010 to a new installation in nearby Parwan.

The prison will now be known as the Afghan National Detention Facility at Parwan.

In September 2012, ISAF turned over partial control of Bagram, including about 3,000 detainees, to Afghan authorities, although 600 prisoners remained in U.S. custody, according to Tolo television.

The prison at Bagram has been the focus of several controversies since the U.S. invasion of Afghanistan in 2001.

Organizations such as Amnesty International have complained that the United States has held hundreds of people at the center, including minors, without access to attorneys or courts.

Former inmates said they were tortured at Bagram.

Afghan President Hamid Karzai also has criticized the existence of Bagram as a violation of his country's sovereignty.

The handover came a few hours before U.S. Secretary of State John Kerry arrived in Kabul on an unannounced visit. EFE