In June 2013, when Kevin Rudd beat Julia Gillard in a final leadership election. That same ballot saw Albanese elected by the caucus as Deputy Leader of the Labor Party, and the next day Albanese was sworn in as Deputy Prime Minister. He held this role until Labor's defeat at the 2013 election, and was replaced by Warren Truss on 18 September.