The maker of Budweiser, facing more competition in America from craft brews and cocktails, is spending billions to fight back.

Anheuser-Busch InBev will devote $2 billion in U.S. capital spending to bolstering its flagship brands and improving distribution. The money also will help support the companyโ€™s forays into โ€œnear beer,โ€ alcoholic sparkling water, and other products โ€” like tea โ€” that are far afield from its original mission.

The investment, which extends through 2020, is a bet that Anheuser-Busch can push into new categories without neglecting its core business: traditional beer brands. Striking that balance will be key to the companyโ€™s future, Anheuser-Busch Chief Executive Officer Joao Castro Neves said in an interview.

โ€œWhat we are trying to do is the โ€˜andโ€™ and not the โ€˜or,โ€โ€™ he said.

The first $500 million will be spent this year on what Castro Neves calls the companyโ€™s three pillars: elevating its biggest beer brands, building its presence in craft brews and imports, and pushing beyond regular beer into low-alcohol beverages and other drinks.

Anheuser-Busch has already bought nine U.S. craft-beer brands, and itโ€™s in the process of closing a deal for Asheville, N.C.-based Wicked Weed, which makes beers with names such as Angel of Darkness, Iron Lady and Barrel Aged French Toast.

Castro Neves sees the companyโ€™s craft and smaller-scale producers as key to keeping up with rapid shifts in customer preferences. โ€œThey are very close to consumers, and they help us stay ahead of the curve,โ€ he said.

The companyโ€™s capital spending will help foster some of its smaller brands. Castro Neves cited a $15 million investment at a facility in Fairfield, Calif., that will allow craft partner Elysian Brewery to produce its Space Dust beer there. (Elysianโ€™s website describes the hops flavor as โ€œpure starglow energy.โ€)

Expanding the portfolio is critical because beer volumes are declining, particularly in Anheuser-Buschโ€™s top categories. Beerโ€™s share of the U.S. alcohol market lost ground to liquor for a seventh straight year in 2016, falling a percentage point to 47 percent, according to the Distilled Spirits Council, a trade organization. Spirits rose to 36 percent from 35 percent.

The shift has led Anheuser-Busch to look outside beer for growth. The brewer has acquired SpikedSeltzer, an alcoholic sparkling water, and formed a partnership with Starbucks Corp. to brew, bottle and sell ready-to-drink Teavana teas. Anheuser-Busch also has a joint venture with JAB Holding Co.โ€™s Keurig to develop an at-home drink maker.

The investments will include $200 million this year to improve operations at the companyโ€™s 12 largest U.S. breweries and $180 million to enhance packaging and expand the production of aluminum bottles. Anheuser-Busch will spend $82 million on its supply chain, including new distribution centers in Los Angeles and Columbus, Ohio, and $10 million to expand nonalcoholic production in Baldwinsville, N.Y.