Starch is a complex carbohydrate made up of long chains of glucose molecules. When iodine reacts with starch, it forms a blue-black complex, which is why the food turns black.
This reaction is often used to test for the presence of starch in food, such as in bread, potatoes, and rice.