In the 2011 general election, Daniel Mora was elected to the Congress on the Possible Peru Alliance list to represent the Constitutional Province of Callao. On 28 July 2011, newly elected president Ollanta Humala appointed him as Minister of Defense, due to a coalition agreement between Possible Peru and Humala's Peru Wins movement. He resigned when the cabinet was reshuffled on 11 December 2011.