That would be Kuja (for me). At the end he was the one who sacrficed his own life to save the main characters and then he died as a good guy.