A kidney biopsy is performed to diagnose the cause of kidney problems when other diagnostic tests, such as blood tests, urine tests, or imaging, do not provide sufficient information. It can help identify conditions such as glomerulonephritis, interstitial nephritis, and diabetic nephropathy. The biopsy can also determine the severity of kidney damage and guide treatment plans.