Sectioning is the process of legally detaining someone in a hospital for mental health treatment when they are considered a danger to themselves or others. It is done under mental health laws, where a doctor or legal authority decides that the person needs help but is unable or unwilling to seek treatment on their own. The person can be kept in the hospital for a set period for evaluation and care.