HARARE, Zimbabwe — When Robert G. Mugabe stepped down as Zimbabwe’s president last fall, jubilant citizens poured into the streets of Harare, the capital, hoping that the end of his 37-year rule would lead to competitive multiparty elections and the revival of a moribund economy.

But as campaigning intensifies ahead of elections on July 30 — the first without Mr. Mugabe’s name on the ballot since independence in 1980 — the ex-president’s heavy legacy hangs over the country.

The political party Mr. Mugabe led for decades is now represented by Emmerson Mnangagwa, a former vice president who has been accused of organizing brutal repression during Mr. Mugabe’s rule. The opposition has been fractured and weakened after the death this year of its longtime leader, Morgan Tsvangirai, who challenged Mr. Mugabe in successive elections in 2002, 2008 and 2013.