The minerals in hard water react with soap and affect its cleaning capacity. It's still possible to use hard water when washing by using more soap. The additional soap will no longer be affected by the minerals in the water, so they can clean just as effectively, but you'll be wasting more soap this way.