To control the amount and depth of water in the ricefield during the required time necessary for crop growth.