This review examines how alcohol and opioids modify the epigenome in key brain regions, contributing to anxiety, depression, post-traumatic stress disorder and addiction vulnerability. It also summarises evidence from animal and human studies demonstrating that these epigenetic alterations can be transmitted across generations.