The Somali men, aged between 22 and 34, were found guilty of attempting to hijack a Liberian-flagged merchant ship in the Indian Ocean last year.
They were identified as Liban Ahmed, Ali Hassan, Tahlil Hassan, Abdinasir Hassan, Osman Farah, Abdullahi Omar, Abdi Hassan, Ahmed Dahir, Hassan Ahmed, Hirsi Hassan and Mohamed Dahir.
The pirates tried to seize the Safmarine container ship in April, last year, but naval force from a French warship had stormed them.
The French warship called Nivose had handed the pirates to the Kenya authorities for trial.
Defence lawyer Jared Magolo said the men were fishermen who had been at sea for three days before a French navy attacked them.
He appealed for lenience arguing that the suspects need reform while on remand.
“The suspects are remorseful… and have never known peace throughout their lives in their war-torn country. They need special consideration and understanding,” Magolo said.
But Judge Richard Kirui rejected the lawyer’s claim and sentenced the men for piracy.
“After serving your jail term, I further order you to be deported back to your country of origin,” Kirui told the sentenced men.
This is the fourth case involving Somali pirates to be conclusively determined in Kenya since western warships began to patrol Somali Sea and Gulf of Aden in 2008.
Only a week ago, the same court sentenced seven Somali pirates five years in prison.
Kenya and Seychelles are the only African nations prosecuting pirates in the Horn of Africa nation.
The foreign warships patrolling the waters under the consortium known as Atalanta, are now been eluded by the pirates who have since moved to hijack ships far into the Indian Ocean.