Ambient temperature was found to be positively associated with AMR of K. pneumoniae, and this association was moderated by socioeconomic status. Policymakers should consider the impact of global warming and high temperatures on the spread of 3GCRKP and CRKP when developing strategies for the containment of AMR.