The Ugandan parliament has passed a law that abolishes the mandatory death penalty for certain crimes, amending four different laws that had earlier prescribed capital punishment, including the Anti-Terrorism Act.
If approved by President Yoweri Museveni, the amendments will restrict the death penalty to just the most serious of crimes, only at the judge's discretion.
The Ugandan Prisons Service has welcomed the move by MPs, saying the focus should be on reforming inmates.
Currently, there are 133 inmates on death row in Uganda though no-one has been executed in the last 20 years.
There has been a campaign to end capital punishment, following a 2009 court ruling in favour of then death row inmate Susan Kigula, who had argued that the death sentence was unconstitutional.
The court then ruled that the death penalty should not be mandatory in cases of murder, and that a condemned person should not be kept on death row indefinitely - if a convict was not executed within three years, the sentence be automatically turned into life imprisonment.
The Ugandan MPs say the law paves way for the complete abolition of capital punishment in the country.