SnS2 nanoplates are used as sacrificial templates to facilitate the in situ growth of intermetallic compound Pt3Sn nanoparticles. The Pt3Sn/SnS2 heterostructures show promise for selective NO2 sensing due to the favored gas adsorption and gas-solid charge transfer on Pt3Sn, combined with the optimized film conductance and formation of ohmic-type Pt3Sn/SnS2 heterointerfaces.