The government told the U.N. High Commissioner for Human Rights (OHCHR) last week that it would not renew the mandate of its office in the east African country, effectively expelling the rights monitors.
Okello Oryem, state minister for foreign affairs, told Reuters the UN rights office had come to Uganda to monitor rights violations during the war in the country's north which ended nearly two decades ago.
"Now that the war is finished, there's no more relevance of that office," he said.
The UN office was set up in 2006 and has highlighted widespread rights violations including torture, illegal detentions and failure by the state to prosecute offenders.
The government said in a letter to OHCHR this month that the U.N. presence was no longer necessary because of the progress it made in developing domestic capacity to monitor human rights compliance, including the emergence of a strong civil society.
OHCHR had declined to comment on the government's decision.
Livingstone Sewanyana, who heads the Uganda Human Rights Foundation, rejected the government's justification for closure of the office.
"For the last couple of years...the civic space has been shrinking," he said.
"The regime in Uganda should be isolated by all democracy seeking people," Bobi Wine, a pop star turned politician who heads the opposition National Unity Platform (NUP) said in response to a question about the government's decision.
During the last presidential election in January 2021, in which Wine finished runner-up to Museveni, gun-toting security officers tear-gassed and baton-whipped people protesting against brutality by security forces.