Answer
Robert Gates served as Secretary of Defense under President Barack Obama from 2009 to 2011. This was an unusual occurrence as Gates had previously held the same position under Obama's predecessor, President George W. Bush, making him the first person to serve as Secretary of Defense under two consecutive presidents since James Forrestal under Presidents Truman and Eisenhower.