Liz Truss has become the prime minister of the United Kingdom after being officially asked by the Queen to form a new government.

The former foreign secretary beat her rival Rishi Sunak to win the Conservative leadership race on Monday and will replace Boris Johnson in Number 10.

Number 10 keys exchange hands – Politics Hub live updates

In a break with tradition, Ms Truss travelled to Balmoral, where the Queen is on holiday, for her formal appointment.

It was thought to be best for the Queen, 96, not to travel back to London due to her intermittent mobility issues.

A picture of the pair showed them meeting in the drawing room of Balmoral in front of an ornate fireplace.

The smiling monarch, who was wearing a tartan skirt and holding her walking stick, was pictured shaking hands with Ms Truss as she became the 15th prime minister of the Queen’s reign – the first being Sir Winston Churchill.

More on Liz Truss

Now that the so-called kissing the hand ceremony has passed, Ms Truss will return to Downing Street to begin assembling her cabinet.

Several well-known figures have resigned ahead of the expected reshuffle, including Priti Patel, the home secretary, and Nadine Dorries, the culture secretary.

Other MPs will be eagerly waiting by their phones for a job offer, or their marching orders.

But former Conservative leader and Truss cheerleader Sir Iain Duncan Smith told the BBC he had turned down a role from the new PM.

“I am very happy to support her,” he said. “Sometimes in life you have got to figure out whether you add value to a particular job that you are being asked to do.”

Earlier, Mr Johnson gave his last speech as prime minister to a packed Downing Street before travelling to Balmoral to formally tender his resignation to the Queen.

He said he would “get behind Liz Truss every step of the way” and told the Conservative Party that “it is time to get behind” his successor.

Mr Johnson also hinted at a possible political comeback, comparing himself to Cincinnatus, a Roman statesman who resigned and returned to his farm before, according to tradition, becoming leader again in later years.

After Ms Truss returns from Scotland, she will make her own speech on the steps of Number 10 to set the agenda for her leadership.

Supporters of the new prime minister tweeted their congratulations, with one of her closest allies, the current Work and Pensions Secretary Therese Coffey, calling the appointment “brilliant news”.

Education Secretary James Cleverly said she had been “a great friend” to him and his wife, adding: “She’s been a great foreign secretary, and she will be a great prime minister.”

Ms Truss also got well wishes from further afield, with the Irish PM, Micheal Martin, saying he was “committed to a strong and deep relationship between our countries, and to working in an open and constructive way” with the PM.