A highly thermally stable ferroelectric metal-organic framework and its thin film with substrate surface nature dependent morphology.