Three men accused of plotting the 9/11 attacks, including alleged mastermind Khalid Sheikh Mohammed, have reached a plea agreement with the military, officials said Wednesday.

Mohammed, Walid Muhammad Salih Mubarak Bin ‘Attash, and Mustafa Ahmed Adam al Hawsawi will plead guilty to some charges as early as next week at Guantanamo Bay, according to the Office of Military Commissions.

Khalid Sheikh Mohammad was captured during a raid in Pakistan on March 1, 2003.

The terms of the agreement are not available, the Pentagon said in a statement.

They are expected to plead guilty to lesser charges that could spare them the death penalty.

Mohammed and the other defendants were initially charged and arraigned in 2008 for their alleged roles in the attack, the statement said.

Mohammed was captured in Pakistan in 2003 and has been held with other al Qaeda detainees at Guantanamo Bay.