With renal failure there is decreased glomerular filtration which results in an increased level of serum phosphate. This tends to cause serum calcium to be deposited in bone leading to a decrease serum calcium level. In response to low serum calcium the parathyroid glands are stimulated to secrete parathormone (PTH) which results in secondary hyperparathyroidism.