Acrylamide forms through the Maillard reaction between amino acids and reducing sugars present in potatoes when they are cooked at temperatures above 120°C (248°F). The reaction is responsible for the brown color and distinct flavor of fried and baked goods.