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. 