He was the United Nations High Commissioner for Refugees from June 2005 to December 2015, and in October 2016 the United Nations General Assembly elected him by acclamation to become the next United Nations secretary-general. He replaced Ban Ki-moon.