Two novel pillared-layer lanthanide borates built by Ln@B12O28/29 ring clusters and dicarboxylate linkers (Ln = Pr, Nd).