Quetiapine is used to treat certain mental/mood disorders (such as schizophrenia, bipolar disorder, sudden episodes of mania or depression associated with bipolar disorder).
For psychosis or schizophrenia, if you have had one episode of illness, then it is best for you to keep taking olanzapine for at least two years to reduce the chances of becoming ill again. If you have had more than one episode of illness, then a period of at least five years is recommended.