Answer
Esper served as the U.S. secretary of defense from 2019 to 2020. He was appointed by President Donald Trump and served until his resignation in November 2020. Esper's tenure as secretary of defense was marked by several significant events, including the U.S.-China trade war, the ongoing conflict in Afghanistan, and the COVID-19 pandemic.