Upon defeat at the 2010 general election, Brown resigned as party leader and Harman, as Deputy Leader of the Labour Party, became Acting Leader of the Labour Party and Leader of the Opposition until Ed Miliband was elected leader. She subsequently served as Shadow Deputy Prime Minister, combining the position with that of Shadow Secretary of State for International Development (2010–2011) and then Shadow Secretary of State for Culture, Media and Sport (2011–2015). After Labour's defeat at the 2015 general election, Miliband resigned as Leader of the Labour Party and Harman once again became Acting Leader and Leader of the Opposition. She announced that she would also resign as Deputy Leader, prompting a concurrent deputy leadership election.