Temperature is essential in cooking as it affects the texture, flavor, and safety of food. Cooking at the correct temperature ensures that proteins denature and pathogens are eliminated. For example, poultry should be cooked to an internal temperature of 165°F (74°C) to ensure safety.