Restraints and seclusion are used as a last resort, primarily to ensure patient safety and the safety of others. They may be employed in cases of severe agitation, aggression, or when a patient poses a significant risk of harm to themselves or others. It is essential to consider all other alternatives before resorting to these measures.