A New York man who was attending college in Maine when he stabbed another man to death during a fight has been sentenced to serve 10 years in prison.

Akeem Harris, of Amityville, New York, was ordered by a judge Wednesday to serve 10 years of an 18-year sentence and four years of probation for the April 2013 death of 30-year-old Thomas Taylor.

The 25-year-old Harris, who was attending Eastern Maine Community College, was originally charged with murder, but pleaded guilty in November to manslaughter.

Cops: LI man arrested in Maine slaying

Prosecutors say the men knew each other and got into a fight sparked by a dispute Harris' friend had with Taylor.

advertisement | advertise on newsday

Harris said Taylor was armed too and the maintained that the stabbing was in self-defense.

Harris apologized in court.