Pickling is a process of preserving food in an acidic vinegar solution. The addition of salt to onions during the pickling process helps to preserve the onion's crunchy texture and prevents the growth of bacteria.