What are the kidneys and what do they do?

The two kidneys are bean-shaped organs located near the middle of the back, just below the rib cage to the left and right of the spine. Each about the size of a fist, these organs act as sophisticated filters for the body. They process about 400 quarts of blood a day to sift out about 2 quarts of waste products and extra water that eventually leave the body as urine. 
Blood enters the kidneys through arteries that branch inside the kidneys into tiny clusters of looping blood vessels. Each cluster is called a glomerulus, which comes from the Greek word meaning filter. The plural form of the word is glomeruli. There are approximately 1 million glomeruli, or filters, in each kidney. The glomerulus is attached to the opening of a small fluid-collecting tube called a tubule. Blood is filtered in the glomerulus, and extra water and wastes pass into the tubule and become urine. Eventually, the urine drains from the kidneys into the bladder through larger tubes called ureters.
Each glomerulus-and-tubule unit is called a nephron. Each kidney is composed of about 1 million nephrons. In health nephrons, the glomerular membrane that separates the blood vessel from the tubule allows waste products and extra water to pass into the tubule while keeping blood cells and protein in the bloodstream. 
How Do Glomerular Diseases Interfere With Kidney Function?
Glomerular diseases damage the glomeruli, letting protein and sometimes red blood cells leak into the urine. Sometimes a glomerular disease also interferes with the clearance of waste products by the kidney, so they begin to build up in the blood. Furthermore, loss of blood proteins like albumin in the urine can result in a fall in their level in the bloodstream. In normal blood, albumin acts like a sponge, drawing extra fluid from the body into the bloodstream, where it remains until the kidneys remove it. But when albumin leaks into the urine, the blood loses its capacity to absorb extra fluid from the body. Fluid can accumulate outside the circulatory system in the face, hands, feet, or ankles and cause swelling. 
What Are the Symptoms of Glomerular Disease? 
The signs and symptoms of glomerular disease include:
large amounts of protein in the urine
-hematuria: blood in the urine
-reduced glomerular filtration rate:
inefficient filtering of wastes from the blood
-hypoproteinemia: low blood protein
-edema: swelling in parts of the body
One or more of these symptoms can be the first sign of kidney disease. But how would you know, for example, whether you have proteinuria? Before seeing a doctor, you may not. But some of these manifestations: 
-Proteinuria may cause foamy urine. 
Blood may cause the urine to be pink or cola-colored. 
-Edema may be obvious in hands and ankles, especially at the end of the day, or around the eyes when awakening in the morning, for example. 
How Is Glomerular Disease Diagnosed? 
Urinalysis provides information about kidney damage by indicating levels of protein and red blood cells in the urine. Blood tests measure the levels of waste products such as creatinine and urea nitrogren to determine whether the filtering capacity of the kidneys is impaired. If these lab tests indicate kidney damage, the doctor may recommend ultrasound or an x-ray to see whether the shape or size of the kidneys is abnormal. These tests are called renal imaging. But since glomerular disease causes problems at the cellular level, the doctor will probably also recommend a kidney biopsy—a procedure in which a needle is used to extract small pieces of tissue for examination under different types of microscopes, each of which shows a different aspect of the tissue. A biopsy may be helpful in confirming glomerular disease and identifying the cause. 
What Causes Glomerular Disease?
A number of different diseases can result in glomerular disease. It may be the direct result of an infection or a drug toxic to the kidneys, or it may result from a disease that affects the entire body, like diabetes or lupus. Many different kinds of diseases can cause swelling or scarring of the nephron or glomerulus. 
The categories presented below can overlap: that is, a disease might belong to two or more of the categories. For example, diabetic nephropathy is a form of glomerular disease that can be placed in two categories: systemic diseases, since diabetes itself is a systemic disease; and sclerotic diseases, because the specific damage done to the kidneys is associated with scarring. 
Autoimmune diseases
When the body’s immune system functions properly, it creates protein-like substances called antibodies and immunoglobulins to protect the body against invading organisms. In an autoimmune disease, the immune system creates autoantibodies, which are antibodies or immunoglobulins that attack the body itself. Autoimmune diseases may be systemic and affect many parts of the body, or they may affect only specific orga ns or regions. 
Systemic lupus erythematosus (SLE) affects many parts of the body: primarily the skin and joints, but also the kidneys. Because women are more likely to develop SLE than men, some researchers believe that a sex-linked genetic factor may play a part in making a person susceptible, although viral infection has also been implicate as a triggering factor. Lupus nephritis is the name given to the kidney disease caused by SLE, and it occurs when autoantibodies form or are deposited in the glomeruli, causing inflammation. Ultimately, the inflammation may create scars that keep the kidneys from functioning properly.