Chávez survived several further political tests, including an August 2004 recall referendum. He was elected for another term in December 2006 and re-elected for a third term in October 2012. However, he was never sworn in for his third period, due to medical complications. Chávez died on 5 March 2013 after a nearly two-year fight with cancer. The presidential election that took place on Sunday, 14 April 2013, was the first since Chávez took office in 1999 in which his name did not appear on the ballot.