Duty: Memoirs of a Secretary at War is a nonfiction book written by Robert M. Gates, a former U.S. Secretary of Defense. It was published in January 2014 by Alfred A. Knopf. The time period is from 2006 to 2011, and includes the George W. Bush administration (2006–2009), the Obama administration (2009–2011), the Afghan war, and the Iraq War.