Nigerian General, Enitan Ransome Kuti has been jailed due to his failure to defend the northeastern town of Baga in January, when Boko Haram militants attacked.
Many civilians were killed when Boko Haram surrounded the town and seized a large numbers of weapons.
The General’s lawyer said he will file an appeal against the court's decision.
Ransome Kuti is member of a well-known Nigerian family. His uncle was the Afrobeat legend Fela Kuti.
What exactly happened in Baga?
The number of people killed in Baga remains controversial as the official statement released by the Nigerian government says 150 people were killed while local residents claim that more than 2,000 lost their lives.
He was also charged for loss of equipment, including several armoured personnel carriers, 12 Toyota pick-up trucks, three rocket-propelled grenade launchers, more than a dozen machine guns, and a large amounts of ammunition.
At least 17,000 people have been killed since 2009, mostly in the northeastern states of Nigeria: Borno, Adamawa and Yobe.