civil commitment

noun
  1. : court-ordered institutionalization of a person suffering from mental illness, alcoholism, or drug addiction usually upon a finding that the person is dangerous to himself or herself or to others