Carrying placards, one emblazoned with the slogan "A vote for Trump is a vote against African dictatorship!", the two men attempted to enter the US embassy grounds in the Ugandan capital.
The men -- named by local media as Bigirwa Moses and Allan Kitonsa -- are reportedly members of the youth wing of Uganda's Democratic Party, though spokesman Kenneth Kakande distanced his party from the demonstration.
"Today's protest was not sanctioned by the Democratic Party. Perhaps overzealous young people, excited by what's taking place in America, were just seeking media attention," Kakande told AFP, saying that in his view the billionaire Republican candidate was not suitable for the White House.
A spokesman for the US Embassy in Kampala confirmed the incident but declined to comment further.