BALTIMORE (AP) — Baltimore Mayor Stephanie Rawlings-Blake said Friday that she will not seek re-election next year, nearly five months after the city erupted in rioting following the death of a man injured in police custody.

Rawlings-Blake made the announcement Friday at a news conference called only 90 minutes earlier, a move that comes just days after officials said the city would pay Freddie Gray’s family $6.4 million to settle civil claims over his spinal injury.

The mayor said she believes she could have won re-election, pointing to her work on the city’s budget and pension system. However, she said, not seeking re-election was the best decision for the city and for her family. Among other things, she said the city needed to get through the trials of the six police officers charged in Gray’s death.

“It was a very difficult decision, but I knew I needed to spend time focused on the city’s future, not my own,” she said.

Rawlings-Blake said she was now focused on working for the city and did not want every decision she made over the next 15 months to be evaluated in the context of a political campaign.

The Democrat assumed office in 2010 after her predecessor, Sheila Dixon, was convicted of embezzling gift cards for needy families and pleaded in a separate case for lying about gifts from her developer ex-boyfriend. Rawlings-Blake won the 2011 Democratic primary with about 52 percent of the vote in the heavily Democratic city.

Some questioned her readiness to lead the city at first, but she won praise for her handling of snowstorms and budget gaps. That praise turned to criticism as many blasted her handling of the unrest following Gray’s death.

In July, she fired Police Commissioner Anthony Batts and appointed one of his deputies in the interim.

Copyright 2015 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.