OCD may be caused by a lack of serotonin in the brain. Serotonin is a chemical produced by the brain to send messages to different nerves. Low levels of serotonin are considered to be a cause of depression. A lack of serotonin may also contribute to OCD.