Ascochyta lentis is a fungal pathogen that causes ascochyta blight in the important grain legume species lentil, but little is known about the molecular mechanism of disease or host specificity. We employed a map‐based cloning approach using a biparental A. lentis population to clone the gene AlAvr1‐1 that encodes avirulence towards the lentil cultivar PBA Hurricane XT. The mapping population was produced by mating A. lentis isolate P94‐24, which is pathogenic on the cultivar Nipper and avirulent towards Hurricane, and the isolate AlKewell, which is pathogenic towards Hurricane but not Nipper. Using agroinfiltration, we found that AlAvr1‐1 from the isolate P94‐24 causes necrosis in Hurricane but not in Nipper. The homologous corresponding gene in AlKewell, AlAvr1‐2, encodes a protein with amino acid variation at 23 sites and four of these sites have been positively selected in the P94‐24 branch of the phylogeny. Loss of AlAvr1‐1 in a gene knockout experiment produced a P94‐24 mutant strain that is virulent on Hurricane. Deletion of AlAvr1‐2 in AlKewell led to reduced pathogenicity on Hurricane, suggesting that the gene may contribute to disease in Hurricane. Deletion of AlAvr1‐2 did not affect virulence for Nipper and AlAvr1‐2 is therefore not an avirulence gene for Nipper. We conclude that the hemibiotrophic pathogen A. lentis has an avirulence effector, AlAvr1‐1, that triggers a hypersensitive resistance response in Hurricane. This is the first avirulence gene to be characterized in a legume pathogen from the Pleosporales and may help progress research on other damaging Ascochyta pathogens.