Treating depression or obsessive-compulsive disorder (OCD) in adults and children. It is used to treat bulimia nervosa and panic disorder in adults. It may also be used for other conditions as determined by your doctor. Prozac is a selective serotonin reuptake inhibitor (SSRI). It works by restoring the balance of serotonin, a natural substance in the brain, which helps to improve certain mood problems.