Swelling, also known as edema, and bruising, or ecchymosis, can result from a variety of causes. Common causes include trauma, surgery, infections, and chronic conditions such as heart failure or kidney disease. Bruising occurs when small blood vessels break and leak blood into the surrounding tissues, while swelling can be due to fluid accumulation in the tissues.