The main factor that causes beer to foam is the natural proteins it contains. The characteristic foam of the beer is important for its aesthetics, as it gives it its familiar look and appearance. These proteins come from the malt and grains used in the production of beer.