Mashing is a process in which cereals or grains are mixed with water and then heated to create a thick liquid, known as mash. This liquid can be used for various purposes such as brewing, distilling, or producing biofuels. The temperature of the mash during this process determines its outcome - higher temperatures break down complex carbohydrates into fermentable sugars while lower temperatures are used to extract flavor compounds from grains.