In the present study, I explored the relationship between people's trust in different agents related to the prevention of the spread of coronavirus disease 2019 (COVID-19) and their compliance with pharmaceutical and non-pharmaceutical preventive measures. The COVIDiSTRESSII Global Survey dataset, which was collected from international samples, was analysed to examine the aforementioned relationship across different countries. For data-driven exploration, network analysis and Bayesian generalised linear model (GLM) analysis were performed. The result from network analysis demonstrated that trust in the scientific research community was most central in the network of trust and compliance. In addition, the outcome from Bayesian GLM analysis indicated that the same factor, trust in the scientific research community, was most fundamental in predicting participants' intent to comply with both pharmaceutical and non-pharmaceutical preventive measures. I briefly discussed the implications of the findings, the importance of trust in the scientific research community in explaining people's compliance with a measure to prevent the spread of COVID-19.