The 18-page letter was addressed to "the head of the snake, Barack Obama," leader of "the country of oppression and tyranny."
Defense attorney David Nevin provided a copy of the letter, which has not yet been posted on the US military's website for Guantanamo proceedings.
Trump sends letter of thanks to China's Xi
He told AFP that Mohammed began writing it in 2014. The letter is dated January 8, 2015, but reached the White House only two years later in the last days of Obama's presidency, according to news reports, after a military judge ordered the Guantanamo prison camp where Mohammed is held to deliver it.
"It was not we who started the war against you in 9/11; it was you and your dictators in our land," he wrote.
Listing many grievances over America's "brutal and savage massacres" from Vietnam to the atomic bombs dropped on Hiroshima and Nagasaki, Mohammed focused his rage on the plight of Palestinians and US support for Israel and the "occupier Jews."
"Your hands are still wet with the blood of our brothers and sisters and children who were killed in Gaza," he wrote in the opening paragraph.
US 9/11 law an international legal Pandora's Box
Along with the letter, Mohammed sent a 51-page manuscript entitled "Shall I Die when the Crusaders Carry out the Death Sentence? The Truth about Death." It is illustrated with an image of a noose.
Mohammed, who faces a potential death sentence for allegedly masterminding the plane hijackings that killed almost 3,000 people, says he is not afraid of dying.
Mohammed was waterboarded 183 times in March 2003 and held at a secret CIA prison site overseas. "I speak about death happily!" he wrote.
COMMENTS
Comments are moderated and generally will be posted if they are on-topic and not abusive.
For more information, please see our Comments FAQ