Home secretary Sajid Javid was snubbed from attending the lavish state banquet in honour of Donald Trump at Buckingham Palace.

Mr Javid, the son of Pakistani Muslim parents, was the only holder of a great office of state - which include prime minister, foreign secretary, home secretary and chancellor - not to be invited to the opulent dinner hosted by the Queen.

The omission of the Conservative leadership hopeful from the guest list has raised eyebrows in Westminster, as rivals Jeremy Hunt, the foreign secretary, and Michael Gove, the environment secretary, were among senior ministers in attendance.

Mr Javid previously condemned the president for sharing Islamophobic tweets from the far-right extremist group Britain First in 2017.

His allies were unconcerned by the snub, joking that he may have been left off the list because he had been confused with Sadiq Khan, the Labour mayor of London, who is also of Pakistani heritage.

"Maybe Downing Street was worried the president might confuse him with the other son of a bus driver," a friend told the Daily Mail.

The president has a long-running feud with Mr Khan. His first act on arriving in London was to brand the mayor a "stone cold loser" after Mr Khan accused him of whipping up his followers with the rhetoric of "20th Century fascists".

Mr Trump tweeted: "Sadiq Khan, who by all accounts has done a terrible job as mayor of London, has been foolishly "nasty" to the visiting president of the United States, by far the most important ally of the United Kingdom.

"He is a stone cold loser who should focus on crime in London, not me."

The state banquet is one of the key events of the president's three-day visit, with 170 guests drawn from the royal family, industry and political life.

Trump UK Visit: What everyone wore at the State Banquet Show all 8 1 /8 Trump UK Visit: What everyone wore at the State Banquet Trump UK Visit: What everyone wore at the State Banquet President Trump,Queen Elizabeth II, Melania Trump, Prince Charles and the Duchess of Cornwall The group pose for a photograph ahead of the State Banquet, which took place in the ballroom at Buckingham Palace. The president wore a black tuxedo while the Queen donned The Garter sash across her long-sleeved embellished cream gown by Angela Kelly. The Queen also wore a Burmese ruby and diamond tiara. Melania wore custom Dior for the occasion, Prince Charles went for a classic tailcoat and the Duchess of Cornwall chose a cream embroidered gown by Bruce Oldfield with a diamond tiara. AFP/Getty Images Trump UK Visit: What everyone wore at the State Banquet Melania Trump and Prince Charles Melania's ivory gown featured a jagged neckline and a mesh panel. The first lady also wore matching ivory gloves for the occasion. AFP/Getty Images Trump UK Visit: What everyone wore at the State Banquet The Duchess of Cambridge and Steven Mnuchin The Duchess arrived in a sweeping ivory gown by Alexander McQueen's Sarah Burton. She also wore a Lover's Knot tiara and earrings borrowed from the Queen while Mnuchin donned traditional tails. Getty Images Trump UK Visit: What everyone wore at the State Banquet Theresa May and the Duke of Cambridge The soon-to-exit Prime Minister wore a plunging black sleeveless gown with minimal jewellery. Prince William wore tails and a white bow tie. AFP/Getty Images Trump UK Visit: What everyone wore at the State Banquet Ivanka Trump and Liam Fox The first daughter chose a powder blue shirt dress by Carolina Herrera while Britain's international trade secretary arrived in tails. AFP/Getty Images Trump UK Visit: What everyone wore at the State Banquet The Countess of Wessex and Chancellor of the Duchy of Lancaster David Lidington Sophie, Countess of Wessex wore a ruched mauve gown, which she paired with a diamond necklace and tiara. Lidington wore a tailcoat and a white waistcoat. AFP/Getty Images Trump UK Visit: What everyone wore at the State Banquet Lindsay Reynolds and Philip May Melania Trump's chief of staff wore a flowing sleeveless gown with floral embellishment and green and lilac panels. May paired his black tailcoat with a white bow-tie. AFP/Getty Images Trump UK Visit: What everyone wore at the State Banquet Princess Anne and Jared Kushner Princess Anne's ivory gown was in keeping with the shade-of-choice of the night, as was Kushner's choice of monochrome tails. AFP/Getty Images

Politicians at the event included Theresa May and her husband Philip, de-facto deputy PM David Lidington, Philip Hammond, the chancellor, defence secretary Penny Mordaunt, Michael Gove, the environment secretary, and international trade secretary Liam Fox.

The guest list for the state banquet was determined by Buckingham Palace, with input from the government and also from the American embassy. Invitations are issued by the Lord Steward on behalf of the Queen.

A Downing Street spokesperson said: "The invitations to the state banquet were organised and led by Buckingham Palace."

In her speech, the Queen delivered what could be seen as a coded rebuke to Mr Trump over his criticism of international institutions created after the Second World War to ensure peace, such as Nato and the UN.

"As we face the new challenges of the 21st Century, the anniversary of D-Day reminds us of all that our countries have achieved together," she said.

"After the shared sacrifices of the Second World War, Britain and the United States worked with other allies to build an assembly of international institutions, to ensure that the horrors of conflict would never be repeated.

"While the world has changed, we are forever mindful of the original purpose of these structures: nations working together to safeguard a hard won peace."

Mr Trump praised the Queen for her "spirit of dignity, duty, and patriotism that beats proudly in every British heart", after he spent the day with the "fantastic" royal family.

Support free-thinking journalism and attend Independent events

The president is expected to press Ms May to block Chinese tech giant Huawei out of the UK’s 5G telecoms network during talk at Downing Street on Tuesday.