Well...He was betrayed by his clansmen and he wanted to avenge them his wish was fullfilled by Obito and Itachi...or I can say that Obito helped Itachi becaouse Madara told him to do something like that