Dependence, in the context of toxicology, refers to a physiological state where the body has adapted to a substance, leading to withdrawal symptoms when the substance is not present. This adaptation implies that the body needs the substance to function normally and maintain homeostasis. Dependence can occur with both legal substances, such as alcohol and prescription medications, and illegal substances, such as heroin and cocaine.