Hardness of water can be removed by using washing soda.
Washing soda (sodium carbonate) reacts with the calcium and magnesium ions present in hard water to form insoluble carbonates, which can then be removed by filtration.
This process is effective for removing both temporary and permanent hardness.