The main function of the root in flowering plants is to anchor the plant in the soil, absorb water and nutrients, and sometimes store food.