The COVID-19 outbreak initially occurred in Wuhan, China, and spread rapidly to other countries, including Indonesia. Various precautions were taken to suppress the spread of this virus, one of which was conducting prevention behavior in communities. This study aims to evaluate the adherence to COVID-19 prevention behavior associated with sociodemographic and psychological aspects. This cross-sectional study was conducted online from September 28 to October 9, 2020, with respondents from Bogor’s Cohort Noncommunicable Disease Risk Factor study. Data were obtained from 1,736 respondents using the Indonesian Self-Report Questionnaire-20 (SRQ-20). The study used multiple logistic regression to analyze the data. If the result of the SRQ-20 was ≥ 6, it was categorized as a common mental disorder. As such, prevention behavior was found to be higher in individuals who did not experience common mental disorders (AOR = 1.8; 95% CI [1.1, 2.8]). Adherence was also discovered in people who were over 55 years old and educated above junior high school (AOR = 1.5; 95% CI [1.1, 2.3]), married women (AOR = 1.4; 95% CI [1.1, 1.8]), and workers who work more at home (AOR = 3.3; 95% CI [2.3, 5.0]).