A new lanthanide metal-organic framework was constructed using a tripodal flexible zwitterion ligand (H3LBr3) which takes a chair-shaped configuration. The luminescence of the compound displays highly selective sensing of the Fe(3+) ion and nitrobenzene.