When the kidneys become damaged, waste products and fluid can build up in the body, causing swelling in your ankles, vomiting, weakness, poor sleep, and shortness of breath. If left untreated, diseased kidneys may eventually stop functioning completely. Loss of kidney function is a serious -- and potentially fatal -- condition.