Mate that was part of the deal.. he takes all the blame for Danzo's plan and Obito's.
Also, the village never betrayed him.. only Danzo did. He however betrayed the Village itself. There was no saving the village from a war... or etc. He was a simple 13 year old who was presuaded to kill his own clan.. so they won't be a threat to Danzo's power.. the same guy who got the 3rd Hokage killed and also almost let the 5th Hokage die. The whole thing about "countries attacking".. that was the shitiest excuse to defend Danzo with. why? Because Konoha was weakened a lot more when Oro attacked.. yet the other countries didn't do anything?

I wonder why. Oh yea maybe cause they just ended the 3rd Great shinobi war and signed a peace treaty.
Itachi was naive... he killed is WHOLE CLAN.. the strongest clan in the leaf...The Leaf villages main military force.
And during that time Uchiha were citizens of Konoha.... and had every bit of a right to live in it.. However the leaders of Konoha had a different mind set.. (Well only 3 of the 4 leaders).. So he killed a Konoha clan.. aka COMRADES aka killed many friends .. That is betrayal. You do not simply get away with a genocide. ON TOP OF THAT.. He disobeyed the HOKAGE.
(Bottom left panel).. that was the mindset of the leaders of Konoha.. Instead of talking and listening to problems.. they declared the people of Konoha traitors..... reminds me of Stalin.
You must be registered for see images