Two new ternary compounds PrPtIn and SmPtIn were synthesized and characterized by means of X-ray diffraction, magnetic and electrical measurements. The crystal structure of SmPtIn was refined from single-crystal X-ray data, down to R 1 =0.0406 for 297 F 2 values and 15 variables. The structure of PrPtIn was established from powder diffractometer data. Both compounds crystallize with a hexagonal structure of the ZrNiAl-type (space group P6̄2m) with the lattice parameters: a=7.6522(3) Å, c=4.0455(1) Å for PrPtIn, and a=7.5895(6) Å, c=3.9540(1) Å for SmPtIn. The Pr-based compound is paramagnetic down to 1.7 K, whereas SmPtIn orders ferromagnetically below 25 K. Both phases exhibit metallic character of the electrical conductivity.