Media playback is unsupported on your device Media caption Sajid Javid: Ministers decide on their advisers

Sajid Javid has said his resignation as Chancellor was necessary to uphold the "national interest" and sensible "checks and balances" in government.

He quit the cabinet in the prime minister's reshuffle after a row over merging his team with No 10's advisers.

In a personal statement in the Commons explaining his decision, he defended the Treasury's independence and said it must be able to "speak truth to power".

No 10 said having joint advisers would help government work "effectively".

During his speech, Mr Javid warned the government not to abandon its fiscal discipline.

He offered his full support to Boris Johnson and his successor as chancellor, Rishi Sunak, who watched on as Mr Javid delivered a rare personal statement setting out the reasons for his surprise exit last month.

But in a warning to the PM, he said Mr Sunak - who will deliver the Budget in two weeks' time - should be given the "space to do his job without fear or favour".

Mr Javid stood down after just over six months in the Treasury.

He had been told by the PM that he would have to share his team of personal advisers with No 10 and that some of his existing staff would be let go as part of plans to create single unit.

Speaking in the Commons, he said it has "always been the case" that ministers appointed their own advisers, and he saw no reason why the Treasury "should be the exception to that".

The convention that "advisers advise, ministers decide and ministers decide on their advisers" remained a sound one, he told MPs.

Analysis by BBC political correspondent Leila Nathoo

MPs listening to Sajid Javid's reflections from the backbenches would have been in no doubt about who he held responsible for his resignation.

Dominic Cummings was mentioned by name only in passing and in jest, but he was the central character in the statement.

While not as explosive as it could have been, Mr Javid's speech pulled no punches when it came to the verdict on the new relationship between Downing Street and the Treasury: not in the national interest.

The Treasury, he said, must continue to be a strong and credible institution - 'don't undermine it' was his message.

And while he was full of praise for his former boss and his successor, he urged them to stick with his fiscal rules and resist the temptation to splash the cash and cut taxes.

The Budget - that Mr Javid was meant to deliver in a fortnight - will reveal whether they take heed of his advice.

He said he felt the order to fire his aides would "significantly inhibit" the flow of good advice and would not have been in the national interest as "no particular person" has a "monopoly of the best ideas".

He said mutual trust and creative tension between institutions were vital to the proper functioning of government.

"It is through these checks and balances of credible institutions, be it the Treasury, the Bank of England, the Office for Budget Responsibility and this House, that we arrive in sensible decisions that are in the national interest," he said.

Image copyright AFP Image caption The PM and his new chancellor were in the chamber to listen to Mr Javid's statement

"A chancellor, like all cabinet ministers, has to be able to give candid advice to a prime minister so he is speaking truth to power. I believe that the arrangement proposed would significantly inhibit that and it would not have been in the national interest."

He also made a joke at the expense of the PM's chief adviser, Dominic Cummings, who was widely seen as behind the plan to clip the Treasury's wings. He told MPs he did not want to go into the "Cummings and goings" of the row that led to his departure.

While the "tenacious and energetic" prime minister had a once in a generation opportunity to renew and transform the country, he said the government must live within its means.

As a "low-tax Conservative", he said he was worried that the overall tax burden was already at its highest in many years.

Amid warnings from a leading economic think tank, the IFS, that the new chancellor must raise taxes in his first Budget or break the government's rules on borrowing, he said "not everyone at the centre of government" feels the same pressure to balance the books and the Treasury had a responsibility to keep spending and the national debt "under control".

"Trade-offs need to be made somewhere. When we need to do much more 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.

Image copyright UK Parliament/Jessica Taylor Image caption Former PM Theresa May reacts as Sajid Javid delivers his personal statement

Responding immediately to Mr Javid's comments, the PM praised Mr Javid's "immense service" to the country and said he had "friends and admirers" across the House.

Later, a Downing Street spokesman defended the decision to merge advisors, saying: "The new unit will ensure that the government works more effectively to deliver the prime minister and chancellor's shared ambition to level up the economy across the UK."

The PM's official spokesman would not confirm whether the government would stick to Mr Javid's fiscal rules, adding: "As set out in the [Conservative election] manifesto, we will continue to have a clear fiscal framework."

"The detail of that is for the chancellor to confirm at the budget."