What causes calcium buildup on pool tile?

Arizona has extremely hard water and as the water evaporates from your pool the calcium stays in your pool and continually builds up leaving you with that unsightly waterline ring.. Also the average pool owner never balances the ph and alkalinity correctly which can reduce the problem but even with proper alkalinity the calcium will still build up somewhat.