Capturing and separating the greenhouse gas SF6 from nitrogen N2 have significant greenhouse mitigation potential and economic benefits. We used a pore engineering strategy to manipulate the pore environment of the metal-organic framework (MOF) by incorporating organic functional groups (-NH2). This resulted in an enhanced adsorption of SF6 and separation of the SF6/N2 mixture in the MOF. The introduction of amino (-NH2) groups into YTU-29 resulted in a reduction of the Brunauer-Emmett-Teller surface but an increase in interactions with SF6 within the confined pores. Water-stable YTU-29-NH2 showed a significantly higher SF6 uptake (95.5 cm3/g) than YTU-29 (77.4 cm3/g). The results of the breakthrough experiments show that YTU-29-NH2 has a significantly improved separation performance for SF6/N2 mixtures, with a high SF6 capture of 0.88 mmol/g compared to 0.56 mmol/g by YTU-29. This improvement is due to the suitable pore confinement and accessible -NH2 groups on pore surfaces. Considering its excellent regeneration ability and cycling performance, ultrastable YTU-29-NH2 demonstrates great potential for SF6 capturing and SF6/N2 separation.