Salting is the preservation of food with dry edible salt. It is related to pickling in general and more specifically to brining (preparing food with brine, that is, salty water) and is one form of curing. It is one of the oldest methods of preserving food, and two historically significant salt-cured foods are salted fish (usually dried and salted cod or salted herring) and salt-cured meat (such as bacon). Vegetables such as runner beans and cabbage are also often preserved in this manner.
Salting is used because most bacteria, fungi and other potentially pathogenic organisms cannot survive in a highly salty environment, due to the hypertonic nature of salt. Any living cell in such an environment will become dehydrated through osmosis and die or become temporarily inactivated. Fine grained salts were more expensive but also absorbed moisture faster than coarse salt.
Salting could be combined with smoking to produce bacon in peasant homes. Instructions for preserving freshly killed venison in the 14th century involved covering the animal with bracken as soon as possible and carrying it to a place where it could be butchered, boiled in brine, and dry salted for long term preservation in a barrel.
It was discovered in the 19th century that salt mixed with nitrates (such as saltpeter) would color meats red, rather than grey, and consumers at that time then strongly preferred the red-colored meat. The food hence preserved stays healthy and fresh for days avoiding bacterial decay.
Jewish and Muslim dietary laws require the removal of blood from freshly slaughtered meat. Salt and brine are used for the purpose in both traditions, but salting is more common in Kosher Shechita (where it is all but required) than in Halal Dhabiha (as in most cases, draining alone will suffice).