Investigations of the magnetic properties and structures of the pillared perovskites, La5Re3MO16 (M=Co, Ni)