Dinkins, who defeated incumbent Ed Koch in the Democratic mayoral primary, went on to lead the city in the 1990s during a time of economic and racial strife.