AbstractResearch shows that escapism and frustration of basic psychological needs are linked with gambling and gaming problems, but an effect of escapism combined with restricted autonomy, competence, and relatedness on excessive gambling and gaming remains unclear. The purpose of this study is to identify shared characteristics of people who engage in escapist behavior and analyze to what extent the interaction of escapism and basic psychological need frustration predicts excessive gambling and gaming. We conducted a five-wave longitudinal survey with Finnish residents aged 18–75 years (n = 1530, 50.33% male) from April 2021 (T1) to April–May 2023 (T5). Measures included the Problem Gambling Severity Index, the ten-item Internet Gaming Disorder Test, and three escapism-specific questions. We analyzed the Basic Psychological Need Satisfaction and Frustration Scale, sociodemographic controls, and personality traits using multilevel regression models. We found that escapism was related to autonomy frustration, competence frustration, male gender, impulsivity, openness, and having a significant other who has experienced gambling problems. Escapism predicted excessive gambling, and competence frustration moderated this association. Escapism also predicted excessive gaming, and autonomy frustration and competence frustration moderated this association. Research on and treatment of excessive gambling and gaming should consider these underlying factors driving escapism.