1. To keep the ship on a straight line, from Port 'A' to Port 'B.' In other words, to have good course keeping properties.
Usually the height of a rudder is 1.75 its length. Please, see the following illustration as a guidance for naval architects when designing ship's rudder.