Over the last decades, European farmland birds have strongly declined, mainly driven by agricultural intensification. The Ortolan Bunting Emberiza hortulana has suffered one of the most severe declines among farmland specialists. In order to maintain viable populations of the species in the long run, there is a vital need for evidence-based conservation measures. The main goal of this study was to detect the key drivers of breeding-territory selection and mating success of the species in an agricultural landscape in central Europe. We found that the landscape structure within the territories of Ortolan Bunting breeding pairs strongly varied from the overall habitat availability in the study area on both the territory and home-range scales. However, the environmental conditions also differed between the territories of breeding pairs and those of unpaired males. While landscape structure played an important role in breeding-territory selection, it had only weak effects on mating success. In contrast, crop type and vegetation height at potential nesting sites were important drivers of mating success. Overall, our study revealed that Ortolan Bunting has very complex breeding-habitat requirements. Only heterogeneous agricultural landscapes where (1) suitable song posts, (2) appropriate nesting sites, and (3) sufficient foraging habitats occur in close proximity are suitable for breeding. According to the findings of our study, agri-environmental schemes should primarily facilitate low-intensity farming practices that promote landscape heterogeneity, provide suitable nesting sites, and sustain a high abundance of invertebrate prey in farmlands.