Olanzapine is in a class of medications called atypical antipsychotics. It works by changing the activity of certain natural substances in the brain.It may also be used in combination with other medication to treat depression.