Before his entry into politics Ansip trained as a chemist, before working in banking and business. He entered Parliament in 2004, quickly becoming Minister of Economic Affairs, and subsequently Prime Minister in April 2005. On 1 November 2014, he was appointed to the European Commission.