The second May ministry was formed on 11 June 2017 after Theresa May returned to office following the June 2017 snap general election. The election resulted in a hung parliament with the Conservative Party losing its governing majority in the House of Commons. On 9 June 2017, May announced her intention to form a Conservative minority government, reliant on the confidence and supply of the Democratic Unionist Party; a finalised agreement between the two parties was signed and published on 26 June 2017.
May announced on 24 May 2019 that she would resign as Leader of the Conservative Party on 7 June. She remained in office as caretaker prime minister during the resulting Conservative Party leadership election, before officially resigning on 24 July, after which she was succeeded as prime minister by former Foreign Secretary Boris Johnson.