In 1993, Andris Piebalgs won a seat in the Latvian Parliament, when the first elections after the restoration of independence were held according to the Latvian election law.
From 2003 to 2004, he was appointed Deputy Secretary of State for EU affairs at the Ministry of Foreign Affairs of Latvia.