CHARLOTTESVILLE, Va.

THE opposition by the New York State chapter of the N.A.A.C.P. to Mayor Michael R. Bloomberg’s restrictions on sugary soda caught many Americans by surprise. But it shouldn’t: though the organization argues it is standing up for consumer choice and minority business owners, who it claims would be hurt, this is also a favor for a stalwart ally — Coca-Cola alone has given generously to support N.A.A.C.P. initiatives over the years.

This is more than a story of mutual back-scratching, though. It is the latest episode in the long and often fractious history of soft drinks, prohibition laws and race.

While it is widely known that John Pemberton, an Atlanta pharmacist, invented Coke as a kind of patent medicine, it was in fact his second drink. His first, an 1884 invention called French Wine Coca, was a copy of a popular French wine that contained cocaine. But in November 1885, just as the product began to sell, Atlanta outlawed alcohol sales.

Across the nation, support for prohibition was often tied to the desire by native whites to control European Catholics, American Indians, Asian-Americans and, especially in the South, African-Americans. It gave police officers an excuse to arrest African-Americans on the pretext of intoxication.