The US Supreme Court said it will hear its biggest gun rights case in nearly decade — one that seeks to undercut New York City rules sharply limiting gun owners from carrying firearms outside of their homes.

The high court on Tuesday said it will take up the appeal of New York State Rifle & Pistol Association Inc. vs. New York City, which is being fought by three city handgun owners and the National Rifle Association’s NY affiliate.

The plaintiffs are challenging New York City’s so-called premise license as unconstitutional because it allows gun owners to keep a loaded pistol only at the specific address indicated on the license. Premise license holders can carry their guns to authorized gun ranges unloaded and in a locked container. But they are generally limited in taking their pistols outside of city limits.

NYC also offers a “full-carry” license, which lets gun owners carry loaded pistols around with them. But these licenses are generally limited to people who can justify needing to carry a concealed weapon, such as business owners who deal in cash and law enforcement agents.

The plaintiffs say they, too, should be allowed to take their handguns to gun ranges outside the city and, in the case of one resident, to a second home outside of the city.

“The city’s ban on transporting handguns outside city limits is an extreme, unjustified and irrational restriction on Second Amendment rights,” the residents and the gun rights group argued in their appeal.

The court is expected to hear arguments in its next term, which starts in October and lasts through June 2020.

This will be the court’s first Second Amendment case since 2010 when it tossed a Chicago handgun ban in a ruling that argued for an individual’s right to own guns for self-defense.