Uganda's President Yoweri Museveni has written a letter to his top security chiefs warning against the use of torture.
He described it as "unnecessary and wrong and must not be used again".
It follows media reports alleging that several people suspected to be connected to the murder of a senior police officer had been tortured.
Ugandan security officials have been accused by human rights groups of using torture to get confessions.
Mr Museveni said torture was wrong because it was sometimes employed on innocent people, which was unfair, and could lead them to admitting guilt to stop the pain.
He also said that good investigators could obtain convictions without using torture.
Assistant Inspector General of Police Andrew Felix Kaweesi, the third most senior police officer in the country, was shot dead outside his house in March.
Ugandan newspapers have shown suspects charged in the murder of Mr Kaweesi with visible signs of injuries when they appeared in court.

On Sunday, Maria Burnett from Human Rights Watch (HRW) called for police to take suspects' allegations of torture seriously. She also said the officers allegedly involved should be investigated "for torture and mistreatment".
She added that HRW has spoken to hundreds of witnesses over the last 15 years who have complained of being tortured.
Uganda ratified the United Nations Convention against Torture in 1986, which means that torture should be outlawed in the country.
Latest Stories
-
Hoffman Laboratories boosts maternal care at Ridge Hospital with equipment donation
2 minutes -
One in three babies born to HIV-positive mothers at risk of toxoplasmosis, KNUST study reveals
24 minutes -
Erroneous to think my role as Torkornoo’s lawyer in injunction application against probe affect optics – Godfred Dame
41 minutes -
Suspened CJ Torkornoo is merely barking – Ansa-Asare on injunction to stop removal probe
43 minutes -
Ghana Athletics sets roadmap for junior and senior athletes ahead of August nationals
1 hour -
You will not lose any value after restructuring of MobileMoney Limited – MTN Board Chair assures shareholders
1 hour -
Decongestion exercise is long-term, not temporary – Accra Mayor
1 hour -
Joy Prime’s Big Chef Junior Team surprises Serwaa Bonsu at school
1 hour -
Ag. NPA CEO pays courtesy call on former US Ambassador
1 hour -
Ghana Immigration Crackdown: Deportation of undocumented foreign beggars
1 hour -
Cedi appreciation: Gov’t’s expenditure misalignment must be investigated – Gideon Boako
2 hours -
Ghana needs $562bn for full energy transition by 2070 – Energy Ministry
2 hours -
Suspended CJ Torkornoo files injunction against committee probing her removal
2 hours -
Photos: AMA demolishes illegal structures, uncovers ‘Lucifer Village’ on day 2 of decongestion exercise at Circle
2 hours -
JHS pupil dies in galamsey pit after being chased by security at Pramkuma
3 hours