Based on the first principle of density functional theory, a study has been conducted on the effect of boron and nitrogen atoms doping on the band structure of phagraphene nanoribbons (PGNRs).The research results show that doping with boron and nitrogen atoms can effectively control the band structure of phagraphene nanoribbons: single and double boron and nitrogen atom doping can realize the semiconductorization of the energy band of phagraphene nanoribbons; the concentration of doping atoms also has an effect on the band structure of phagraphene nanoribbons; meawhile an increase in the concentration of doped atoms can obtain a completely different band structure from that of a single-atom doping.