Sajid Javid explains shock resignation as chancellor as Boris Johnson watches on

Sajid Javid has said his shock resignation as chancellor happened because Boris Johnson attached conditions to him remaining in the role that "would not have been in the national interest".

Mr Javid addressed his cabinet departure in a resignation statement to MPs in the Commons on Wednesday.

He quit during the prime minister's reshuffle after Mr Johnson insisted he sack his aides and replace them with ones chosen by Downing Street.

A joint Number 10-Number 11 team was established in the hours after Mr Javid's resignation.

His surprise departure was the culmination of weeks of reported tensions between him and Dominic Cummings, the PM's chief adviser.

Mr Javid was replaced by Rishi Sunak, who was promoted from chief secretary to the Treasury.

As the PM watched, the chancellor told the Commons: "It has always been the case that advisers advise, ministers decide and ministers decide on their advisers.

"I couldn't see why the Treasury, with the vital role that it plays, should be the exception to that."

Mr Javid said the chancellor of the day "has to be able to give candid advice so he is speaking truth to power".

He continued: "I believe that the arrangement proposed would significantly inhibit that and it would not have been in the national interest.

"So while I was grateful for the continued trust of the prime minister in wanting to reappoint me, I am afraid that these were conditions that I could not accept in good conscience."

Mr Javid then made an apparent reference to Mr Cummings, telling MPs: "Now I don't intend to dwell further on all the details and the personalities... the comings and goings if you will."

The remark prompted laughter in the chamber.

He added: "I very much hope that the new chancellor will be given space to do his job without fear or favour.

"And I know this Mr Speaker, that my right honourable friend for Richmond [Rishi Sunak] is more than capable of rising to the challenge."

Mr Javid, who has been MP for the Worcestershire seat of Bromsgrove since 2010, said his time as chancellor would not be his "last chapter" in public life.

And ahead of the budget on 11 March, he warned against a raft of new borrowing to fund extra spending, describing fiscal rules contained in the Tory manifesto as "critical".

Mr Javid cautioned: "At a time when we need to do much to level up across generations it would not be right to pass the bill for our day-to-day consumption to our children and grandchildren."

Despite his pointed references to the row that saw his time in Number 11 come to an end, Mr Javid said the PM has his "full confidence".

He said: "We on these benches have a shot at achieving nothing less than wholesale renewal for our economy, our society, and for our country."

Mr Javid went on: "I know that this is a shared vision and I firmly believe that the prime minister has the tenacity, the energy and the skill to see it through.

"I want to leave the House in no doubt that he has my full confidence, and the government my full support to get it done."

:: Listen to Sophy Ridge on Sunday on Apple podcasts, Google podcasts, Spotify, Spreaker

Raising a point of order after Mr Javid's address, the PM thanked him for his speech and "immense service".

Mr Johnson added that he had "friends and admirers on all sides of this House of Commons".

Speaking in the aftermath of Mr Javid's speech, the PM's official spokesman said the new arrangements brought in by Number 10 "will ensure the government works more effectively to deliver on the PM's and chancellor's shared ambition to level up throughout the country".