Severe edema is usually the result of an underlying medical condition such as heart failure or kidney failure. Treating the underlying medical condition can help prevent future edema.