Key PointsQuestionIs the presence of a state palliative care law associated with dying at home or in hospice among decedents from cancer in the US?FindingsIn this cohort study with a difference-in-differences analysis that included 7 547 907 individuals with cancer as the underlying cause of death, dying in a state-year that had a palliative care law was associated with a 12% to 18% increase in the likelihood of dying at home or in hospice.MeaningThese findings suggest that state palliative care laws are associated with an increase in the likelihood of dying at home or in hospice among decedents from cancer.