Exploring the risk factors of avian influenza (AI) occurrence helps us to monitor and control the disease. Since late 2020, the number of avian influenza outbreaks in domestic and wild birds has increased in most European countries, including Denmark. This study was conducted to identify potential risk factors for wild birds and poultry during the epidemic in 2020/2021 in Denmark. Using Danish AI surveillance data of actively surveyed poultry and passively surveyed wild birds from June 2020 to May 2021, we calculated geographical attributes for bird locations and assessed the potential risk factors of AI detections using logistic regression analyses. 4% of actively surveyed poultry and 39% of passively surveyed wild birds were detected with AI circulating or ongoing at the time. Of these, 10 and 99% tested positive for the H5/H7 AI subtypes, respectively. Our analyses did not find any statistically significant risk factors for actively surveyed poultry within the dataset. For passively surveyed wild birds, bird species belonging to the Anseriformes order had a higher risk of being AI virus positive than five other taxonomic bird orders, and Galliformes were of higher risk than two other taxonomic bird orders. Besides, every 1 km increase in the distance to wetlands was associated with a 5.18% decrease in the risk of being AI positive (OR (odds ratio) 0.95, 95% CI 0.91, 0.99), when all other variables were kept constant. Overall, bird orders and distance to wetlands were associated with the occurrence of AI. The findings may provide targets for surveillance strategies using limited resources and assist in risk-based surveillance during epidemics.