The barley is allowed to begin germination which generates enzymes. Then after a bit, the germination is halted by roasting the barley. Different types of roast are used to make different styles of beer. When the barley gets "mashed" it is soaked in warm water around 150 f, and the enzymes convert the starch to sugar. The sugar is used later by the yeast to make alcohol.