Original: He was Latvia's ambassador to neighbouring Estonia from 1995 to 1997, and to the European Union from 1998 to 2003, playing a prominent role in the country's accession talks.
Simplified: He was Latvia's ambassador to Estonia from 1995 to 1997, and to the European Union from 1998 to 2003, when he helped Latvia join the EU.