Objective To explore the influencing factors of falls in the elderly and to provide evidence for the prevention of falls. Methods The study was based on a large sample of 179 141 individuals in Shanghai, with a final inclusion of 40 244 participants. Firstly, independent variables including basic demographics, living environment, health status, and lifestyle habits were selected, with falls as the dependent variable, and univariate and multivariate logistic regression analyses were conducted. Secondly, negative emotions were considered as independent variables, and multivariate logistic regression analysis was performed. Results The fall incidence rate in the elderly within 90 days was 19.55%. Living alone (fall within 30 days: OR=1.161, 95%CI: 1.051-1.282; fall between 31-90 days: 02 = 1.173, 95%CI: 1.070-1.287), unclean living environment (Oi=L775, 95%CZ: 1.331-2.367; OR=1A 17, 95%CI: 1.037-1.203), having M3 chronic diseases (Oi =2.024, 95%CI: 1.763-2.322; OR=2.089: 95%CI: 1.835-2.379), using urine or stool pads (Oi=1.581, 95%CI: 1.351-1.850; Oi=1.445, 95% CI: 1.239-1,685), and low frequency of outdoor activities (occasional outdoor activitie: 0=1.458, 95%CI: 1.171-1,816; OR-1.359, 95%CI: 1.114-1.65& rarely going out: OR=2.084, 95%CI: 1.673-2.596; Oi=2.053, 95%CI: 1.682-2.506) were identified as risk factors for falls within 30 days and 31 to 90 days. Advanced age (70-79 years: O2=1.179, 95%CI: 1.063-1.30& 80 years and above: OR=1A59 95%CI: L040-1.292), abnormal vision (O=L235, 95%CI: 1.079-1.414), and needing assistance with household chores (partially completed by others: OR = 1.572, 95%CI: 1.139-2.169; fully completed by others: 02 = 1.649, 95%CZ: 1.269-2.143) were risk factors for falls within 30 days. There was no cdlinearity between the independent variables Compared with those who did not feel negative emotions, the elderly who frequently felt fatigued had a lower risk of falling (fall within 30 days: O2=O.g86, 95%CZ: 0.gll」.968; fall between 31-90 days: OR =0.900, 95%Ch 0.828-0.977), while the elderly who frequently felt angry had a higher risk of falling (fall within 30 days: O«=1.491> 95%CZ: 1.248-1.782; fall between 31-90 days: 022=1.270, 95%CZ: 1.067-1.513). Conclusion Elderly individuals living with others, maintaining a clean and tidy indoor environment, having a flat and clutter-free floor, and maintaining a good emotional state have a reduced risk of falling. For elderly individuals with relatively good activities of daily living (ADL) and cognitive function it i$ advisable to encourage apprapriate outdoor activities and engage in moderate -intensity and frequency physical activities to prevent falls. [ABSTRACT FROM AUTHOR]