he was minister of environmental protection and regional development in 2002 and in 2011 and as minister of the environment from 2003 to 2011, while the ministry of regional development was a separate department. he became minister of defence of latvia in 2014 and held that office until becoming president in 2015.