Madara is not a pure villain, he just desires to eliminate all differences with absolute order. So Madara chose to face the darkness of the ninja world and continue to resist. Obviously in the reincarnation from the feud between Uchiha and Senju to Madara and Hashirama from friends to enemies, he has been facing repetition and failure, but he has not given up on peace. Madara truly believes that the Eye of the Moon can give people happiness. He pursues meaning but falls into nothingness. He keeps failing but cannot stop.
Madara's defeat, his repetition, brings him closer to the essence of man than any victor.
Ah, this article is not that profound, I just wrote an idea of my own.
Intention: Always stick to yourself