Amazon will split its second US headquarters between Long Island City in New York and Crystal City in northern Virginia, an official has said.
The online retailer is expected to make an announcement detailing the move later on Tuesday.
The decision will end an 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 it clear that it really wanted incentives, such as tax breaks and grants.
Amazon had also sought to be based near a metropolitan area with more than a million people, among other criteria.
The company received 238 proposals before narrowing the list to 20 in January.
Comments: Our rules
We want our comments to be a lively and valuable part of our community - a place where readers can debate and engage with the most important local issues. The ability to comment on our stories is a privilege, not a right, however, and that privilege may be withdrawn if it is abused or misused.
Please report any comments that break our rules.
Read the rules here