Derealization/depersonalisation is considered a mental illness, a rare one that can be quite hard to treat. I can tell you what I have learnt from personal experience and some research.
Depersonalisation and derealisation are both dissociative disorders, it is in the same family of disorders with dissociative amnesia, dissociative fugue and dissoc......