To elucidate the variation in characterizations and genetic evolution of the matrix protein 2 or ion channel protein(M2) genes of avian influenza subtype H5N1 viruses in the boundary region of Yunnan province from 2008 to 2012. A total of swab samples were collected from foreign poultry such as the junction between Yunnan and Vietnam, Laos,myanmar and wild birds in boundary region of Yunnan province from 2008 to 2012 and screened by H5N1 subtype-specific multiplex RT-PCR. The M genes of H5N1 virus from the positive samples were amplified by RT-PCR and cloned into pMD18-T vectors for sequencing. The alignment and phylogenetic analysis of M2 genes were performed with sequences of the known reference strains. A total of 71 positive samples were found out of 1240 samples and the positive rate was 5.72%. A total of 14 different M2 sequences were obtained from 30 positive samples and were divided into 3 distinct clades or sub-clades(1.2.1, 1.2.2 and 2) by phylogenetic analysis, 5, 7 and 2, respectively. The M2 genes and Hemagglutinin(HA) genes of H5N1 viruses from the boundary region of Yunnan province had showed different relationship of genetic evolution. The substitution or mutation of key amino acids sites had been found among the domains of epitope, adamantane-resistance, and poultry or human original viral strains. The M2 genes of H5N1 subtype viruses in boundary region of Yunnan province from 2008 to 2012 showed genetic divergence and the virus of clade 1.2.2 had become dominant epidemic strain in this region.