He went to the Battle of Naboo and prepared to fight Darth Maul. A decade later, he was mentioned to be busy and can't help Obi Wan. 3 years 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 attack of the clones should have ended
how revenge of the sith should have ended