Sliding mode control is a variable structure control method where the control input switches between two or more different structures based on the current position in the state space. There are two main steps: 1) designing a sliding surface that constrains the plant dynamics to achieve the desired response, and 2) constructing switched feedback gains to drive the plant's state trajectory onto the sliding surface. The main advantages are robustness to perturbations or uncertainties and stabilizing some nonlinear systems not possible with continuous feedback. Chattering is the main drawback but can be reduced using techniques like nonlinear gains or higher-order sliding mode control.