Amazon.com Inc. picked America's financial and political capitals for its split new headquarters, saying on Tuesday it will build offices for more than 25,000 people each in New York City and close by Washington, D.C.

The world's largest online retailer plans to spend $5 billion on the two new developments and expects to get more than $2 billion in tax credits and incentives, with plans to apply for more.

Its move ends a frenzied yearlong bidding war among cities across North America, splitting the location between two finalists. In addition, Nashville, Tennessee, will become Amazon's fourth-biggest office outside Seattle, with more than 5,000 corporate jobs focused on technology and management for its retail operations unit.