Chicago's new gun ordinance is now the law.

The City Council quickly passed the ordinance after the U.S. Supreme Court issued a ruling late last month that invalidated Chicago's handgun ban.

The gun ordinance that went into effect Monday allows Chicagoans to have handguns in their homes for protection but imposes restrictions and regulations.

It permits people to have guns inside their homes but forbids them from taking their firearms outside, even onto the porch, into the yard or the garage.

It also calls for prospective gun owners to take a class and receive firearm training. Chicago residents must leave the city to buy guns because the ordinance prohibits gun sales in the city.