How beer is made comes down to turning the starch in grain into sugar, boiling that sugary liquid with hops, and letting yeast turn the sugar into alcohol and carbon dioxide. Wikipedia's article on beer gives water as about 93 per cent of the finished beer by weight.
Ingredients
The four main ingredients are water, a starch source (usually malted barley), brewer's yeast and a flavouring such as hops. Hops add bitterness that balances the sweetness of the malt, along with floral, citrus and herbal aromas. They also have an antibiotic effect that favours brewer's yeast over spoilage microbes, and they support head retention. Adjuncts such as maize, rice, wheat or sugar are secondary sources of carbohydrate, most often used alongside malted barley.
Malting and mashing
Malting begins by soaking barley in water, for around 40 hours in the figures Wikipedia gives, then letting it germinate for roughly five days before it is kilned with a gradual rise in temperature. The malt is then milled to split the kernels and expose the starch.
Mashing mixes the crushed malt with hot water in a vessel called a mash tun. Enzymes convert starch to sugars at 60 to 70 degrees Celsius, and mashing usually takes one to two hours. The sugary liquid, called wort, is run off the grain, and the grain is rinsed with hot water, known as sparging, to recover the remaining sugars.
Boiling and hops
The wort is boiled in a copper or kettle for an average of 45 to 90 minutes. The boil sterilises the wort, stops enzyme activity, extracts bitterness from the hop resins and drives off unwanted flavours. A whirlpool at the end separates the solids, and the wort is cooled quickly to the temperature at which yeast is added. Yeast dies above 60 degrees Celsius, and the wort is aerated before the yeast goes in.
Fermentation
Ale and lager differ mainly in the yeast and the temperature. Top-fermenting ale yeast, Saccharomyces cerevisiae, typically works between 15 and 25 degrees Celsius and produces fruity esters. Bottom-fermenting lager yeast, Saccharomyces pastorianus, ferments at about 7 to 12 degrees, followed by a cold lagering phase at 0 to 4 degrees that gives a cleaner taste. Wikipedia notes that ales are usually ready to drink within about three weeks, while lagers are stored for one to six months.
Yeast turns the sugar into ethanol and carbon dioxide. Modern beer is usually around 4 to 6 per cent alcohol by volume, and a mainstream pale lager sits at about 5 per cent. Low-alcohol beers may contain 1.2 per cent or less, and strong beers can reach about 14 per cent naturally.
Conditioning and packaging
After fermentation the beer is moved off the sediment and conditioned, for two to four weeks or much longer, depending on the style. It may be filtered to remove haze and remaining yeast before it is packed into bottle, keg or cask.
Cask-conditioned ale is unfiltered and unpasteurised and matures by a secondary fermentation in the cask it is served from, usually at a cellar temperature of 11 to 13 degrees Celsius. Bottle-conditioned beer keeps some yeast, either because it is unfiltered or because it was refiltered and reseeded with fresh yeast. The term real ale applies to both cask and bottle-conditioned beer. Pouring such bottles carefully matters; see serving bottled beer.
For the families of beer that these methods produce, the complete guide to beer sets them out.