Two roles on Naboo
The first movie shows both sides without confirming they're the same person, but an attentive viewer catches on. As Sidious, he orders the Trade Federation to blockade and invade Naboo and sends his apprentice, Darth Maul, after the queen. As senator, he convinces Amidala that Chancellor Valorum is weak and gets her to call for a vote of no confidence in the Senate.
The crisis he created puts him in Valorum's seat. By the end of the movie, Palpatine is the new Supreme Chancellor and tells young Anakin he'll be watching his career with great interest.