Highlights•Substance use disorder (SUD) is a risk marker for gambling disorder (GD)•Temporal order between SUD and GD does not differ for males and females.•A previous history of SUD should be accounted for in screening and prevention of GD.