Salting fish draws out moisture, creating an environment that is inhospitable to microorganisms. Salt inhibits the growth of spoilage-causing bacteria and yeasts, thus extending the shelf life of the fish.