We know from history that (low/non-alcohol) beer was often drunk because it was safer than untreated water. Where and when did beer first become associated with celebrations, etc. at which inebriation was a known and desirable effect?

by FireShawnWatson
NetworkLlama

Not to deter discussion of the main question, but the idea that beer replaced water for safety is a myth that u/idjet discussed in this comment.