THE history of the world’s biggest brewer is one of unquenchable thirst. In 1989 Jorge Paulo Lemann and two partners bought a middling Brazilian beer company named Brahma for $50m. A decade later Brahma acquired Antarctica, a rival, to become AmBev. In 2004 a merger with Interbrew, the Belgian seller of Stella Artois and Beck’s, created InBev. Four years later, InBev paid $52 billion for Anheuser-Busch of the United States. As if those deals weren’t dizzying enough, in 2012 the new Anheuser-Busch InBev paid $20 billion for full control of Grupo Modelo of Mexico. Now may come its boldest deal yet. On September 16th SABMiller, the world’s second-biggest brewer, confirmed that it is being courted by AB InBev. The combined firm would earn roughly half the industry’s profits and sell one in every three pints of beer quaffed worldwide.

The announcement comes at a sobering time for big brewers—in June McKinsey, a consulting firm, said the industry faced “its greatest challenge in 50 years”. Consumption in many big markets has been as flat as cask ale. In America the buzz belongs to “craft” brewers, whose volumes jumped by 18% last year even as total beer sales stayed level. Some markets have fared worse. In Germany, where beer is a point of national pride, consumption per person has plunged by one-third since the 1970s.

Little wonder, then, that big brewers and investors have mulled various tie-ups. Last year SABMiller tried and failed to buy Heineken, the third-biggest beer company. June brought rumours that Mr Lemann’s private-equity vehicle, 3G, would buy Diageo, the world’s biggest distiller, perhaps to combine it with AB InBev. More recently, analysts have weighed a merger of Diageo and SABMiller.

Some of these combinations would have merit. But there is a logic for AB InBev to make this particular bid at this particular moment. It is losing its fizz in its two main markets. In Brazil a weak economy is hurting sales. In America its share of volumes was an impressive 45% in 2014, but that is five percentage points below what it was in 2009, according to Euromonitor, a market-research firm. So, buying SABMiller looks attractive, for at least three reasons.

First, AB InBev has already snapped up other big, appealing targets, explains Trevor Stirling of Sanford C. Bernstein, a research firm. In the past, it has sliced the costs of newly acquired assets, as is 3G’s way. In the three years after AB InBev bought Anheuser-Busch, its American profit margin rose by 13 percentage points. AB InBev plans to boost Grupo Modelo’s profit margin by 18 percentage points over the same period. SABMiller is already pretty lean, but a merger would offer some scope to widen its margins.

Second, the merger would help AB Inbev extend its global reach. SABMiller earns almost a third of its profits in Africa, where AB InBev’s sales are negligible. A combination would also help AB InBev serve more drinkers in Colombia and Peru.

Third, SABMiller looks cheap. Its share price has slumped in the past year, thanks to a weak South African rand and Colombian peso. Slower growth in emerging markets, where SABMiller earns 72% of its profits, has not helped. If emerging economies resume their brisk climb, investing in SABMiller could pay off handsomely.

Under the takeover rules in Britain, where SABMiller is listed, AB Inbev must make a formal offer by October 14th. SABMiller’s board is likely to reject its initial approach, and may seek another deal to avoid being taken over. However, its attempts to join up with Heineken got nowhere. It is not obvious that there are other good targets. “If that deal was out there,” argues Mr Stirling, “they would have done it already.” SABMiller’s two biggest shareholders are Altria, a tobacco giant, and the Santo Domingo family of Colombia. If AB InBev’s terms are sweet enough, they will probably support a merger.

Antitrust regulators are another big barrier, though AB InBev could work to appease them. For example, it could sell SABMiller’s stake in MillerCoors, in America, and in CR Snow, China’s biggest brewer. It has already done something similar. After it bought Grupo Modelo, AB InBev calmed American regulators by agreeing to sell the Mexican firm’s American beer business for $4.75 billion. Shedding a business or two can be justified, after all, in the name of acquiring a much bigger one.