Background: Although mental disorders are associated with high smoking rates, few studies have longitudinally tracked smoking behaviour changes among individuals with a psychiatric diagnosis. This study investigated smoking trajectories before and after psychiatric diagnosis compared to matched control. Methods: This retrospective cohort study analysed data from the Korean National Health Insurance Service (2021–2022). A total of 1,858,588 patients diagnosed with mental disorders were identified using ICD-10 codes. These individuals were 1:1 propensity score-matched with controls without mental disorders based on age and sex. We compared changes in smoking status (cessation and initiation) and tobacco product type between the pre- and post-diagnosis periods. Outcomes: Post-diagnosis, smoking prevalence in the mental disorder group decreased from 15.32% to 14.30%, similar to controls (14.89% to 14.22%). However, the rate of smoking initiation was higher in the mental disorder group (0.83% vs. 0.70%), particularly among those with substance use (3.46%) and schizophrenia spectrum disorders (1.05%). Additionally, a shift from combustible cigarettes to liquid e-cigarettes and heated tobacco products was observed in both groups. Interpretation: Diagnosis of mental disorders is pivotal for smoking behaviour. While it prompts cessation for some, it is a critical risk period for smoking initiation and switching to non-combustible tobacco products. Clinical interventions should expand to include preventive measures against initiation and education on non-combustible tobacco products at the time of diagnosis.