ADLs help to explain how sleep quality partly mediates depression among the elderly in nursing homes. It is therefore recommended that timely detection and efficient interventions should focus on promoting physical function and improving sleep quality among the elderly in nursing homes.