Queen Elizabeth II, President of the United States, Donald Trump and First Lady, Melania Trump walk from the Quadrangle after inspecting an honour guard at Windsor Castle on July 13, 2018 in Windsor, England.

President Donald Trump's three-day state visit to the U.K. next month will be dominated by events with Britain's royal family, according to a new schedule released Friday by Buckingham Palace.

The schedule was released just hours after British Prime Minister Theresa May announced Friday that she will resign effective June 7, just two days after the president, first lady Melania Trump and Trump's adult children depart the U.K.

The high number of events with the royal family in part reflects the fact that the president's visit this time, which begins June 3, is his first official state visit, and Queen Elizabeth II is the head of state.

Trump's 2018 visit to the U.K. was technically a working visit, and not a state visit, and it included several events with May, a dinner with business leaders and just one tea with the queen.

The prevalence of events with members of the royal family this time may also reflect a deeper understanding on the part of Trump's British hosts about what the president personally enjoys doing while on foreign trips.

Lavish ceremonial and cultural events on prior trips elsewhere have pleased and impressed Trump to a great extent, and he has spoken glowingly of military parades and royal ceremonies he has experienced on other foreign trips. After his last trip to the U.K., Trump raved about his tea with the queen.

"We got along fantastically well," Trump recounted at a campaign rally later that summer. "You know, sometimes if you like somebody you get along – good chemistry – the time goes by. So we were there for about an hour."