NEW YORK — A black New York City man who attacked three white people, killing one of them, after making violent racial threats has been sentenced to 25 years in prison.

Manhattan District Attorney Cyrus R. Vance Jr. says 44-year-old Lashawn Marten was sentenced Tuesday for the attacks in September 2013 at Union Square.

Vance says Marten had repeatedly threatened to “knock out” the first white person he saw.

When 62-year-old Jeffrey Babbitt walked by, Martin punched him in the face. Babbitt fell and hit his head on the pavement. He died days later.

Two white bystanders were punched while trying to help Babbitt. One of them was knocked unconscious.

Marten was convicted of manslaughter and assault as hate crimes. His lawyer had said Marten didn’t intend to cause serious injury.