Thiazide inhibits luminal Na+ and Cl- contransporter in distal tubule. This leads to increased calcium reabsorption through transpotential voltage gated channel. It also stimulate Ca++ - H+ channel on interstitial side leading to increased calcium absorption. Hence, this is used in cases of hypercalciuria which leads to formation of calcium oxalate stones in urinary system.