Breivik smiled with apparent satisfaction when Judge Wenche Elisabeth Arntzen read the ruling, declaring him sane enough to be held criminally responsible and sentencing him to "preventive detention," which means it is unlikely he will ever be released.[break]
The sentence brings a form of closure to Norway, which was shaken to its core by the bomb and gun attacks on July 22, 2011, because Breivik´s lawyers said before the ruling that he would not appeal any ruling that did not declare him insane.
Prosecutors had argued Breivik was crazy as he plotted his attacks to draw attention to a rambling "manifesto" that blamed Muslim immigration for the disintegration of European society.
Breivik argued that authorities were trying to cast him as sick to cast doubt on his political views, and said during the trial that being sent to an insane asylum would be the worst thing that could happen to him.

Mass murderer Anders Behring Breivik, makes a salute after he arrives at the court room in a courthouse in Oslo Friday. (AP)
The five-judge panel in the Oslo district court convicted Breivik, 33, of terrorism and premeditated murder and ordered him imprisoned for a period between 10 and 21 years, the maximum allowed under Norwegian law. Such sentences can be extended as long as an inmate is considered too dangerous to be released, and legal experts say Breivik will almost certainly spend the rest of his life in prison.
It was not clear whether prosecutors would appeal the ruling. If not, and if Breivik sticks to his word not to appeal a prison term, the legal process for one of the darkest chapters in Norwegian history will have come to a close.
Some who lost loved ones in the attacks welcomed the ruling.
"Now we won´t hear about him for quite a while. Now we can have peace and quiet," Per Balch Soerensen, whose daughter was shot and killed by Breivik, told Denmark´s TV2. "He doesn´t mean anything to me. He is just air."
Wearing a dark suit and sporting a thin beard, Breivik smirked as he walked into the courtroom to hear his sentence, and raised a clenched-fist salute.
Breivik confessed to the attacks during the trial, describing in gruesome detail how he detonated a car bomb at the government headquarters in Oslo and then opened fire at the annual summer camp of the governing Labor Party´s youth wing. Eight people were killed and more than 200 injured by the explosion. Sixty-nine people, most of them teenagers, were killed in the shooting spree on Utoya island. The youngest victim was 14.
Breivik´s lawyers say he is already at work writing sequels to the 1,500-page manifesto he released on the Internet before the attacks.
The impact of Breivik´s violence has been huge. It has forced Norway to accept that terror doesn´t come only in the guise of foreign fundamentalists, but can come from one of their own. The son of a Norwegian diplomat and a nurse who divorced when he was a child, Breivik had been a law-abiding citizen until the attacks, except for a brief spell of spray-painting graffiti during his youth.
Norwegian police and government ministers have faced severe criticism for their actions before and during the attacks. The police response was marred by poor communication and technical mishaps. It took police more than an hour to reach Utoya, as a boat carrying the SWAT team was overloaded and stalled in the middle of the lake. Norway´s only police helicopter wasn´t used because its crew was on vacation.
Norway´s justice minister and police chief both resigned in the aftermath and some critics have called on the prime minister to step down.
Manoj Pandey sentenced to 7.5 years in prison