While codependency is not recognized as a mental illness, it can sometimes co-occur with one, like depression or anxiety. Codependency often develops as a coping mechanism in childhood when a child's primary caregiver doesn't give the child's emotions proper attention and recognition. Codependent people usually have problems in relationships like low self-esteem, an inability to set healthy boundaries, and a need to fix or please other people constantly.
They often prioritize others over themselves and believe that their own needs aren't important. Even though codependency isn't considered a mental illness, those who struggle with codependency can still benefit from therapy or counseling.