Thailand's King Maha Vajiralongkorn told well-wishers of the importance of unity as he marked the opening of a new railway line on Saturday, after thousands of protesters had turned their backs on his motorcade as it passed through central Bangkok.
Around 2,500 demonstrators had gathered at the capital's Democracy Monument in the latest of months of protests against Prime Minister Prayuth Chan-ocha, demanding changes to the constitution as well as reforms of the monarchy.
The protesters draped the centrepiece of the monument, which has become a rallying point for the protests, in a cloth covered in grievances and insults. "Dictatorship be destroyed, democracy shall prosper," shouted protesters who scaled the three-metre structure.
As the motorcade carrying the king and Queen Suthida passed by they turned their backs, gave the three-fingered "Hunger Games" salute of pro-democracy campaigners, and sang the national anthem in the latest show of disaffection with the monarchy.
The king was greeted with a show of support when he arrived at the rail ceremony in the west of the city, where thousands of people had gathered in yellow shirts, waving national flags and chanting "long live the king".
"He told me to show children how important the unity of the country is," said Donnapha Kladbupha, 48, a teacher who posed for selfies with the king.
The Royal Palace has not commented since the start of the protests, but the king said two weeks ago that the protesters were still loved and that Thailand was a land of compromise.
"Think well, do good, be hopeful, endure. Have unity in being Thai," the king wrote on the back of a picture of himself and the queen which had been held up by one supporter.
The initial focus of protests that began in July was to seek the removal of Prime Minister Prayuth Chan-ocha. But demonstrators have increasingly called for reforms to the monarchy, breaking a long-standing taboo against criticising the institution - an offence punishable with 15 years in jail.
"Without the people, the government and monarchy will have no power," said Panusaya Sithijirawattanakul, one of the protest leaders. "Are they willing to take a step back or find a consensus that we can agree on?"