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.