He went to the Battle of Naboo and prepared to fight Darth Maul. Over a decade later, he was sent to fight Darth Sidious. He had a pep talk with Mace Windu. Then he and Agen Kolar and Kit fisto raised their lightsabers and they killed Sidious. Anakin retold the story to his children and said "all jedi survived."
How the phantom menace should have ended
how revenge of the sith should have ended