Board Thread:Theories and Speculation/@comment-30172350-20170617091148/@comment-25122992-20170617110901

Danzo had already no way to save himself, he was heavily (if not mortally) wounded and cornered by both Sasuke and Obito. Destroying the eye and trying to seal these two was the only one option left. Also, if Danzo held such deep feelings to the village, he and his Root faction wouldn't have stayed out of action during the Pain's attack which ended up in an almost complete destruction of Konoha. He didn't act only because of a selfish reason that he can use the attack to overthrow Tsunade's govern as Hokage.