Rice blast is one of the main diseases in rice and can occur in different rice growth stages. Due to the complicated procedure of panicle blast identification and instability of panicle blast infection influenced by the environment, most cloned rice resistance genes are associated with leaf blast. In this study, a rice panicle blast resistance gene, Pb2, was identified by genome-wide association mapping based on the panicle blast resistance phenotypes of 230 Rice Diversity Panel 1 (RDP1) accessions with 700,000 single-nucleotide polymorphism (SNP) markers. A genome-wide association study identified 18 panicle blast resistance loci (PBRL) within two years, including 9 reported loci and 2 repeated loci (PBRL2 and PBRL13, PBRL10 and PBRL18). Among them, the repeated locus (PBRL10 and PBRL18) was located in chromosome 11. By haplotype and expression analysis, one of the Nucleotide-binding domain and Leucine-rich Repeat (NLR) Pb2 genes was highly conserved in multiple resistant rice cultivars, and its expression was significantly upregulated after rice blast infection. Pb2 encodes a typical NBS-LRR protein with NB-ARC domain and LRR domain. Compared with wild type plants, the transgenic rice of Pb2 showed enhanced resistance to panicle and leaf blast with reduced lesion number. Subcellular localization of Pb2 showed that it is located on plasma membrane, and GUS tissue-staining observation found that Pb2 is highly expressed in grains, leaf tips and stem nodes. The Pb2 transgenic plants showed no difference in agronomic traits with wild type plants. It indicated that Pb2 could be useful for breeding of rice blast resistance.