Shorten stood in the subsequent leadership election against Anthony Albanese, the first such election that allowed a vote of party members as well as Members of Parliament, and was declared the winner on 13 October 2013. Shorten led Labor to gain 14 seats at the 2016 election, with the Coalition retaining its majority by just one seat. Shorten later led Labor to an unexpected defeat at 2019 election, after which he announced he resigned from the leadership; Anthony Albanese was elected unopposed to replace him. Shorten is a senior figure within the right faction of the Labor Party.