Juantrelle Quarles Jr., of Bolingbrook, died of multiple gunshot wounds, the coroner's office said.
Shortly after 7 p.m. Saturday, police responded to a home in the 100-block of Cypress Drive and found Quarles dead outside in front of a house, officials said.
A second man was found shot inside the house. He was transported in critical condition to a local hospital.
A large crowd gathered outside the home after they attended a funeral in suburban Summit earlier in the day, Bolingbrook police said.
Anyone with information about the shooting is asked to call the Bolingbrook police at 630-226-8620 or Crime Stoppers at 630-378-4772.