The law of general average is a legal principle of maritime law according to which all parties in a sea venture proportionally share any losses resulting from a voluntary sacrifice of part of the ship or cargo to save the whole in an emergency (for instance, when the crew throws some cargo overboard to lighten the ship in a storm).