Soak beans before cooking to soften them, which reduces cooking time, and to allow some of the gas-generating substances to dissolve into the water, making them easier to digest.