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
-
Keynote speakers arrive in Paris for Women of Valour
3 hours -
Prosecutors demand Luis Rubiales World Cup kiss retrial
4 hours -
Ghana won’t sink any further, investors must stay – Ishmael Yamson
5 hours -
Dr. Louisa Satekla pays courtesy call on Haruna Iddrisu to promote oral health education
5 hours -
Coastal Civil Society Forum engages tidal wave victims, calls for urgent gov’t action
5 hours -
ECB apologises for Pope Francis Ashes post joke
5 hours -
Denmark postal service to stop delivering letters
5 hours -
Photos: Mahama visits victims of tidal waves destruction in Volta region
5 hours -
Teen armed with gun overpowered by passengers onboard plane
5 hours -
Ghana Month: From war airbase to global gateway – KIA’s evolution and Ghana’s airline struggle
6 hours -
Rosetta Quaicoe: Preventing future Cholera outbreaks in Takoradi: A public health imperative
6 hours -
Edward Bawa assumes office as Acting Group CEO & MD of GOIL PLC
6 hours -
Ghana’s economy to face greater external stability in 2025; reserves to hit $8.8bn in 2025
6 hours -
Ghana’s current account balance to remain positive at 1.8% in 2025 – Fitch Solutions
6 hours -
Mahama directs Finance Minister to fund Blekusu Sea Defence Phase II
6 hours