Certain toxins can disrupt the blood-brain barrier or interfere with the normal metabolic processes of brain cells, leading to water accumulation. Toxins such as lead, methanol, and certain neurotoxic drugs can directly damage brain tissue. Other substances may cause systemic effects, such as liver dysfunction, which can secondarily lead to brain swelling.