Agricultural landscapes play a crucial role in enhancing biodiversity because of their widespread presence over the Earth and their ability to encompass diverse ecosystems. Recognizing this, numerous governments are incentivizing farmers through direct payments to adopt sustainable practices, such as managing extensive pastures and meadows, planting wildflowers, or establishing hedgerows. However, the benefit of such sustainable practices on vertebrate species is not well understood. From 2018 to 2020, we investigated nest occupancy, fledging success, and clutch size of a Swiss population of barn owls (Tyto alba) with respect to nest box characteristics and the presence of extensive agriculture and urbanization in areas surrounding nest boxes. Our results revealed that extensively used pastures were positively associated with site occupancy but negatively associated with clutch size. The proportion of urban areas was negatively related to both site occupancy and clutch size. The altitude of the nest box location was negatively correlated with occupancy, and the number of nest boxes placed at the same site (either 1 or 2) was positively correlated with site occupancy. Moreover, clutch size, but not fledging success, was larger in nest boxes placed outside barns than in nest boxes placed inside barns. Based on these findings, we recommend installing nest boxes at locations <700 m in altitude and in pairs on the same barn, incorporating biodiversity promotion areas into agricultural landscapes, and avoiding dense urban areas in favor of rural zones with lower urban density. Understanding the nuanced relationships between nest box characteristics, environmental factors, and breeding success provides valuable insights for optimizing artificial nesting sites and enhancing the overall reproductive success of barn owls.