A Windsor man has unexpectedly pleaded guilty, just as his attempted murder trial was winding down.

Nicholas McCullough, 25, pleaded guilty to aggravated assault, discharging a firearm with intent to endanger life and four counts of breaching court orders on Wednesday.

It’s because of a shooting in September 2015, in an alley behind a Park Street nightclub.

Phillip Nkrumah was shot in the leg but he survived.

On Wednesday, lawyers were expected to begin their closing arguments, but instead McCullough pleaded guilty.

The charge of attempted murder was then dropped by the Crown Attorney.

Defence lawyer Frank Miller tells CTV Windsor he is asking for five years in jail for McCullough, while Crown Attorney Renee Puskas is asking for an eight-year sentence.

Justice Renee Pomerance will have her decision on Friday.