The process by which the residue of undigested food in the gastrointestinal tract (faeces) and the waste products of the body's metabolism – mainly as urine via the kidneys, but also as sweat from the skin, and water and carbon dioxide from the lungs – are eliminated.