The rice gall midge resistance gene, Gm5, confers remarkable antibiosis and is located in the same region on chromosome 12 in three different rice varieties. Fine mapping narrowed this region to a 49-kb segment and identified two candidate genes showing remarkable response to GM infestation. The Asian rice gall midge (GM; Orseolia oryzae; Diptera: Cecidomyiidae) invades rice shoots and forms galls, adversely affecting plant growth and yield production. Thus, the development of resistant varieties through the identification, mapping, and application of GM resistance genes is considered the most efficient strategy for managing this insect. Here, a GM resistance survey of F2 populations derived from intercrosses between resistant rice varieties 'ARC5984,' '570011,' and 'ARC5833' indicated that the resistance gene Gm5 was located on the same chromosomal region in the three varieties. For the initial mapping, three independent F2 mapping populations were developed for the three resistant varieties, and the Gm5 gene was consistently mapped to the same chromosomal region near marker 12M22.6. Fine mapping, which was conducted using the BC1F2 and BC2F2 populations derived from the 9311/ARC5984 cross, narrowed the Gm5 gene region to a 49-kb segment flanked by the markers Z57 and Z64. In the final mapped region, we detected 10 candidate genes, of which six were analyzed for their relative expression. Consequently, two of these genes, Os12g36830 and Os12g36880, showed significantly higher expression in GM-resistant plants than in GM-susceptible plants at 24 and 72 h after GM infestation. Finally, the PCR amplification of markers 12M22.5 and 12M22.6 yielded clear single bands, and these markers were effectively applied for the marker-assisted selection (MAS) of the Gm5 gene. With the developed MAS markers, the fine mapping of this resistance gene will facilitate its map-based cloning and incorporation into insect-resistant rice varieties through breeding.