Specifically, urease-positive bacteria, such as Proteus mirabilis can produce the enzyme urease, which converts urea to ammonia and carbon dioxide. This increases the urinary pH and promotes struvite stone formation. Additionally, non-urease producing bacteria can provide bacteria components that can promote calcium oxalate crystallization, though this mechanism is poorly understood. Inhibitors of stone formation
Normal urine contains chelating agents, such as citrate, that inhibit the nucleation, growth, and aggregation of calcium-containing crystals. Other endogenous inhibitors include calgranulin (an S-100 calcium-binding protein), Tamm–Horsfall protein, glycosaminoglycans, uropontin (a form of osteopontin), nephrocalcin (an acidic glycoprotein), prothrombin F1 peptide, and bikunin (uronic acid-rich protein). The biochemical mechanisms of action of these substances have not yet been thoroughly elucidated. However, when these substances fall below their normal proportions, stones can form from an aggregation of crystals.Sufficient dietary intake of magnesium and citrate inhibits the formation of calcium oxalate and calcium phosphate stones; in addition, magnesium and citrate operate synergistically to inhibit kidney stones. The efficacy of magnesium in subduing stone formation and growth is dose-dependent. Hypocitraturia
Hypocitraturia or low urinary-citrate excretion (variably defined as less than 320 mg/day) can be a contributing cause of kidney stones in up to 2/3 of cases. The protective role of citrate is linked to several mechanisms; citrate reduces urinary supersaturation of calcium salts by forming soluble complexes with calcium ions and by inhibiting crystal growth and aggregation. Therapy with potassium citrate  is commonly prescribed in clinical practice to increase urinary citrate and to reduce stone formation rates.
Oxalate uroliths can occur in ruminants, although such problems from oxalate ingestion may be relatively uncommon. Ruminant urolithiasis associated with oxalate ingestion has been reported. However, no renal tubular damage or visible deposition of calcium oxalate crystals in kidneys was found in yearling wether sheep fed diets containing soluble oxalate at 6.5 percent of dietary dry matter for about 100 days.Conditions limiting water intake can result in stone formation.Various surgical interventions, e.g. amputation of the urethral process at its base near the glans penis in male ruminants, perineal urethrostomy, or tube cystostomy may be considered for relief of obstructive urolithiasis. See also
Nephrocalcinosis
Kidney disease

References
Notes
External links

Kidney stone disease at Curlie
Information from the European Urological Association
Kidney Stone Guide Book – University of Chicago Kidney Stone Program