A man found dead early Thursday in an Avondale neighborhood alley on the Northwest Side committed suicide, authorities said.

About 4:50 a.m., officers found the 25-year-old lying on the ground in the 2800 block of West Nelson with a gun in his hand and his identification nearby, according to Chicago Police.

He was pronounced dead at 5:12 a.m., according to the Cook County medical examiner’s office. An autopsy on Friday found he died of a gunshot wound to the head, and his death was ruled a suicide.