Two of the nation’s leading gun sellers, Walmart and Dick’s Sporting Goods, took steps on Wednesday to limit their sales of firearms, thrusting themselves into the middle of the polarizing national debate over gun control.
Walmart, the biggest gun seller, announced late in the afternoon that it would not sell any gun to anyone under 21 years of age. It also said it would no longer sell items resembling assault-style rifles, including toys and air guns.
Early in the day, Dick’s said it was immediately ending sales of all assault-style rifles in its stores. The retailer also said that it would no longer sell high-capacity magazines and would also require any gun buyer to be at least 21, regardless of local laws.
Under federal law, a person must be at least 21 to buy a handgun from a firearms dealer. But 18-year-olds can buy semiautomatic rifles and other firearms.
The dual announcements, made two weeks after 17 students and staff members were killed in the school shooting in Parkland, Fla., were among the most significant actions taken on guns by corporate America. Both retailers said their decision were a response to the shooting.
A day earlier, President Trump met at the White House with a bipartisan group of lawmakers and called for a series of gun control measures, some of which the National Rifle Association has vigorously opposed.
Walmart and Dick’s acted after a number of major companies moved last week to dissociate themselves from the N.R.A. Hertz car rental, MetLife insurance and Delta Air Lines, among others, publicly ended their relationships with the organization.
In a news release late Wednesday, Walmart noted that in 2015 it discontinued the sale of high-powered rifles, including AR-15-style weapons, in its stores in the United States. But at the time, Walmart sidestepped any controversy involving gun politics, attributing its decision to lower customer demand for the military-style rifles.
This time, Walmart directly linked its action to the shooting in Florida, saying, “In light of recent events, we’ve taken an opportunity to review our policy on firearm sales.”
Top Walmart executives made the decision and then informed the board, a company spokesman said.
Walmart sells guns in roughly half of its nearly 4,000 supercenters, the company said, but the sheer scale of its customer base gives its decision significant heft. Every week, more than 150 million people around the country shop at Walmart.
Dick’s decision was announced by Edward Stack, the 63-year-old chief executive whose father founded the store in 1948. Mr. Stack made clear that he was deliberately steering his company directly into the storm over gun reform.
“When we saw what happened in Parkland, we were so disturbed and upset,” Mr. Stack said in an interview. “We love these kids and their rallying cry, ‘Enough is enough.’ It got to us.”
He added, “We’re going to take a stand and step up and tell people our view and, hopefully, bring people along into the conversation.”
The decision drew immediate — and passionate — reaction on social media. By midday, the number of Twitter messages containing Dick’s name had jumped 12,000 percent from the average over the previous 10 days, according to Sprout Social, a social media management, advocacy and analytics software platform.