Melioidosis is an endemic infectious disease caused by Burkholderia pseudomallei bacteria, which contaminates soil and water. To better understand the environmental changes that have contributed to melioidosis outbreaks, this study used spatiotemporal analyses to clarify the distribution pattern of melioidosis and the relationship between melioidosis morbidity rate and local environmental indicators (land surface temperature, normalised difference vegetation index, normalised difference water index) and rainfall. A retrospective study was conducted from January 2013 to December 2022, covering data from 219 sub-districts, with each exhibiting varying morbidity rate of melioidosis on a monthly basis. Spatial autocorrelation was determined using local Moran’s I, and the relationship between melioidosis morbidity rate and the environmental indicators was evaluated using geographically weighted Poisson regression. The results revealed clustered spatiotemporal patterns of melioidosis morbidity rate across sub-districts, with hotspots predominantly observed in the northern region. Furthermore, we observed a range of coefficients for the environmental indicators, varying from negative to positive, which provided insights into their relative contributions to melioidosis in each local area and month. These findings highlight the presence of spatial heterogeneity driven by environmental indicators and underscore the importance of public health offices implementing targeted monitoring and surveillance strategies for melioidosis in different locations.