Acrylamide forms primarily in starchy foods like potatoes and grains when they are cooked at temperatures above 120°C (248°F). The formation is a result of a chemical reaction between sugars and an amino acid called asparagine. This reaction is known as the Maillard reaction, which is also responsible for the browning and flavor development in cooked foods.