The biggest beer merger in history has taken a major step toward completion.

Anheuser-Busch InBev said on Wednesday that the United States Justice Department had cleared its $106 billion proposed takeover of SABMiller, provided some conditions were met, all but clearing the way for the two biggest brewers in the world to merge.

That would combine the maker of the Budweiser and Miller beers into one company, with an estimated global market share of about 28 percent, according to Euromonitor International.

Under the terms of Anheuser’s agreement with the Justice Department, the combined company would not buy a distributor if that would push more than 10 percent of its overall sales volume in the country through wholly owned distributors.

Anheuser also agreed not to cut any ties with wholesalers as part of the transaction. And the company, which makes Bud Light, agreed not to make moves that would encourage distributors to favor Anheuser or SABMiller brands over competing ones.