Linagliptin significantly improved hyperglycaemia in patients with type 2 diabetes both with and without the TCF7L2 gene diabetes risk alleles. Here, TCF7L2 is linked to diabetes mellitus.