What is the cause of temporary hardness of water?

Presence of Ca(HC${{({{O}{3}})}{2}}$) and Mg (HC${{({{O}{3}})}{2}}$) in water