Mood stabilizers are a class of medications primarily used to treat mood disorders by reducing mood swings and preventing episodes of mania and depression. They are essential in managing conditions such as bipolar disorder and are often used in combination with other medications for optimal effectiveness.