The fire happened at about 8:55 p.m. in the 2000-block of North Hamlin Avenue on Saturday, police said.
The fire started at a residential building and spread to a neighboring building, police said.
Twelve adults and ten children were among those displaced, police said.
The American Red Cross was on scene helping those who were impacted.
Two people were treated at the scene but are OK.
The Chicago Fire Department will investigate what caused the fire.