The static B∗Bπ coupling, g^χ, a low energy constant in the leading order heavy meson chiral Lagrangian, is determined using Nf=2 lattice QCD. We use CLS ensembles with lattice spacings and pion masses down to a=0.05fm and mπ=270MeV, and perform combined continuum and chiral extrapolations of our results which have a much better accuracy than previous numbers in the literature. As a by-product, we determine the coupling between the first radial excitations in the B and B∗ channels (g^22). Accounting for all uncertainties, which are dominated by the chiral extrapolation, we obtain g^χ=0.492(29), while g^22 is somewhat smaller. The comparison to a precise quenched computation suggests that there is little influence by the sea quarks and g^χ will not change much when a dynamical strange quark is included.