BackgroundMental illness poses a substantial global public health challenge, including in Thailand, where exploration of access to mental health services is limited. The spatial and temporal dimensions of mental illness in the country are not extensively studied, despite the recognized association between poor mental health and socioeconomic inequalities. Gaining insights into these dimensions is crucial for effective public health interventions and resource allocation.MethodsThis retrospective study analyzed mental health service utilization data in Thailand from 2015 to 2023. Temporal trends in annual numbers of individuals visiting mental health services by diagnosis were examined, while spatial pattern analysis employed Moran’s I statistics to assess autocorrelation, identify small-area clustering, and hotspots. The implications of our findings for mental health resource allocation and policy were discussed.ResultsBetween 2015 and 2023, mental health facilities documented a total of 13,793,884 visits. The study found anxiety, schizophrenia, and depression emerged as the top three illnesses for mental health visits, with an increase in patient attendance following the onset of the COVID-19 outbreak. Spatial analysis identified areas of significance for various disorders across different regions of Thailand. Positive correlations between certain disorder pairs were found in specific regions, suggesting shared risk factors or comorbidities.ConclusionsThis study highlights spatial and temporal variations in individuals visiting services for different mental disorders in Thailand, shedding light on service gaps and socioeconomic issues. Addressing these disparities requires increased attention to mental health, the development of appropriate interventions, and overcoming barriers to accessibility. The findings provide a baseline for policymakers and stakeholders to allocate resources and implement culturally responsive interventions to improve mental health outcomes.