NEW YORK — Amazon, which has grown too big for its Seattle hometown, said it will split its much-anticipated second headquarters between New York and northern Virginia.
Each will get 25,000 jobs. In addition, the online retailer said it will open an operations hub in Nashville, creating 5,000 jobs.
Its New York location will be in the Long Island City neighborhood of Queens, while its Virginia offices will be in a part of Arlington that Amazon is calling National Landing, a made-up moniker for an area around Reagan National Airport that encompasses Crystal City and Potomac Yard.
The decision ends intense competition between North American cities to win Amazon and its promise of 50,000 new jobs. Some locations tried to stand out with stunts, but Amazon made clear that it really wanted incentives, like tax breaks and grants. The company received 238 proposals before narrowing the list to 20 in January.
City and state leaders in Boston, which lost its bid to be a headquarters’ home, said they were waiting to talk directly with Amazon officials Tuesday, but highlighted the fact that the company already employs thousands of people here - both at distribution centers and tech-focused offices - with more jobs coming.
“Massachusetts is the proud home of nearly 4,000 Amazon jobs located in numerous facilities across the Commonwealth, including the headquarters for Amazon Robotics in North Reading and the creation of an additional 2,000 Amazon jobs in Boston’s Seaport district by 2021,” said state economic development secretary Jay Ash.
Boston Mayor Martin J. Walsh, whose city pitched the shuttered Suffolk Downs racetrack in East Boston as a potential site, said in a statement: “We are pleased to have attracted global companies that contribute to our innovation economy.”
Walsh called Amazon “a valuable partner” as it continues to grow here. “While I am proud Boston was named to Amazon’s shortlist for its second North American headquarters, our future will not be defined by a single company as we continue to plan for equitable, sustainable growth,” he said.
With Long Island City and National Landing, the company is choosing two waterfront communities away from overcrowded business districts, giving Amazon space to grow.
New York, already a financial and media powerhouse, has been trying to attract more tech workers. And northern Virginia has been looking to fill its 1980s-era buildings after thousands of federal employees moved elsewhere.
Amazon is referring to the two new locations as headquarters even though with 25,000 jobs each, they would have fewer workers than its Seattle hometown that houses more than 40,000 employees. Amazon said Seattle will remain as one of Amazon’s three headquarters.
The extra space will help the rapidly growing company. Launched in 1995 as an online bookstore, Amazon now produces movies, makes voice-activated Echo devices, runs the Whole Foods grocery chain, offers online services to businesses and designs its own brands of furniture, clothing and diapers.
There were early signs that Amazon had its sights set on New York and northern Virginia. Among its 20 finalists, the company had selected two locations in the New York metro area and three in the D.C. area.
Being near the nation’s capital could help Amazon with lobbying efforts as the company, and other fast-growing tech giants, face rising scrutiny from politicians. Plus, CEO and founder Jeff Bezos has a home in Washington D.C., and he personally owns The Washington Post.
Amazon’s workforce has ballooned to more than 610,000 worldwide, and that’s expected to increase as it builds more warehouses across the country to keep up with online orders. The company recently announced that it would pay all its workers at least $15 an hour, but the employees at its second headquarters will be paid a lot more.Tim Logan of the Globe staff contributed to this report.