Clumping often occurs due to moisture from the air or essential oils. To prevent clumping, ensure your bath salts are stored in an airtight container. You can also add a small amount of rice or a few silica gel packets to absorb any excess moisture.