A living will is a legal document that allows individuals to outline their preferences for medical treatment in case they become unable to communicate their decisions due to illness or incapacity. This document is a crucial element of advance care planning and ensures that a person's healthcare wishes are respected even when they cannot voice them directly.