Codependency is a behavioral and emotional pattern where a person becomes overly dependent on others for self-worth and validation, often at the expense of their own needs and well-being. It typically develops in close relationships and involves difficulty setting boundaries and maintaining a sense of self.