LONDON — Anheuser-Busch InBev said on Wednesday that it had completed an agreement to acquire its closest rival, SABMiller, for nearly $106 billion, creating what it said would be the first “truly global brewer.”

The deal, reached after months of negotiations, would create a beer industry giant with annual revenue of about $64 billion and would give Anheuser-Busch InBev, already the world’s largest brewer, a substantial operation in Africa, where it has little presence, and greater dominance in Latin America.

The question now is how much regulators will challenge the deal, which would create a company responsible for nearly 30 percent of all beer sales worldwide. The combined company’s brands would include Anheuser-Busch InBev’s Budweiser, Corona Extra and Stella Artois and SABMiller’s Grolsch and Peroni.

In the effort to appease regulators, SABMiller said on Wednesday that it would sell its 59 percent stake in MillerCoors in the United States to its joint venture partner Molson Coors Brewing for about $12 billion. That deal includes the global rights to the Miller brand and would make Molson Coors the second-largest brewer in the United States, behind Anheuser-Busch InBev.