A living will is a legal document that outlines a person's preferences regarding medical treatment and end-of-life care in situations where they are unable to communicate their wishes. It is an important tool in end-of-life ethics, allowing individuals to make their desires known about life-sustaining measures, pain management, and other medical interventions, ultimately helping to guide healthcare decisions made on their behalf.