After staying overnight in Windsor Castle, US President Donald Trump bid farewell to the King and Queen.

"He's a great gentleman and a great King," the US president told the waiting media.

Queen Camilla, King Charles, President Trump and First Lady Melania Trump posed for a final group picture on the final day of the state visit.

Unlike Wednesday, neither the Queen nor the first lady wore exuberant hats.

The first lady had a final round of engagements in Windsor, including a visit to the Royal Library and Queen Mary's Dolls' House with the Queen.