Ion exchange of Dion-Jacobson-type double- and triple-layered perovskites with divalent transition-metal halides leads to the templated assembly of metal-anion layers. A whole series of compounds of the form (MCl)LaNb2O7 (M = V, Cr, Mn, Fe, Co, Cu) and (CuCl)Ln2Ti2NbO10 (Ln = Pr, Nd, Sm, Eu) have been prepared. Additionally, a new series of host compounds is being developed to exploit this exchange chemistry; the new oxyfluorides, RbLnTiNbO6F (Ln = La, Pr, Nd) and RbLaM'NbO6F (M' = V4+, Mn4+, Nb4+, Mo4+), have been prepared by a direct route.