ABSTRACT Tungsten disulfide (WS 2 ) and hexagonal boron nitride (h‐BN) monolayer, and h‐BN/WS 2 heterojunction with low lattice mismatch is constructed using density functional theory (DFT). The band structures, density of states (DOS), charge density differences (CDD), work function (WF), adsorption energy and adsorption distance of h‐BN/WS 2 heterojunction for six gases molecules (CO, CO 2 , NO, NO 2 , SO 2 , and H 2 S) are systematically discussed. Gas adsorption on one‐side and both‐sides of the heterojunction is considered. The results indicate that the band gap of the heterojunction is lower than that of h‐BN and WS 2 , indicating that the construction of heterojunction is beneficial for conductivity. For six gases, the adsorption energy of one‐sided adsorption is significantly greater than that of both‐sided adsorption, except for CO 2 and NO. The adsorption of NO and NO 2 introduces the magnetism into the system. Interestingly, the h‐BN/WS 2 heterojunction demonstrates excellent selectivity for NO gas under one‐sided and both‐sided adsorption. The corresponding adsorption mechanism is explored.