The twelve quaternary rare-earth selenides Ba(2)MLnSe5 (M = Ga, In; Ln = Y, Nd, Sm, Gd, Dy, Er) have been synthesized for the first time. The compounds Ba(2)GaLnSe(5) (Ln = Y, Nd, Sm, Gd, Dy, Er) are isostructural and crystallize in a new structure type in the centrosymmetric space group P ̅1 of the triclinic system while the isostructural compounds Ba(2)InLnSe(5) (Ln = Y, Nd, Sm, Gd, Dy, Er) belong to the Ba(2)BiInS(5) structure type and crystallize in the noncentrosymmetric space group Cmc2(1) of the orthorhombic system. The structures contain infinite one-dimensional anionic chains (1)(∞)[GaLnSe(5)](4-) and (1)(∞)[InLnSe(5)](4-), and both chains are built from LnSe(6) octahedra and MSe(4) (M = Ga, In) tetrahedra in the corresponding selenides. As deduced from the diffuse reflectance spectra, the band gaps of most Ba(2)MLnSe(5) (M = Ga, In; Ln = Y, Nd, Sm, Gd, Dy, Er) compounds are around 2.2 eV. The magnetic susceptibility measurements on Ba(2)GaGdSe(5) and Ba(2)InLnSe(5) (Ln = Nd, Gd, Dy, Er) indicate that they are paramagnetic and obey the Curie-Weiss law, while the magnetic susceptibility of Ba(2)InSmSe(5) deviates from the Curie-Weiss law as a result of the crystal field splitting. Furthermore, Ba(2)InYSe(5) exhibits a strong second harmonic generation response close to that of AgGaSe(2), when probed with the 2090 nm laser as fundamental wavelength.