A District man who shot two people as they were walking down the street in Northwest D.C. two years ago as part of a feud between rival street crews was sentenced Friday to 18 years in prison, the U.S. Attorney’s office announced.

Joseph McCrae, 24, pleaded guilty in June to second-degree murder while armed for killing Jonathan Estep, also 24, in the July 2010 shooting near Columbia Road and 11th Street NW, officials said. They said McCrae was just weeks out of prison for weapons and other offenses.

McCrae, part of a street gang near the area, was retaliating against another gang that he believed had a role in the 2008 killing of his brother, Darrell Goins, officials said. They said a member of a rival street gang was charged in his brother’s killing.

Officials said Estep had no known connection to Goins’s murder other than being from the same neighborhood as the rival street gang.