Big Bang Nucleosynthesis (BBN) occurs during the first minutes of cosmological time in a rapidly expanding hot and dense Universe, where a fraction of protons and nearly all free neutrons end up bound in 4He, while D, 3H, 3He, 6Li, 7Li and 7Be nuclei form in trace quantities. Among these elements, deuterium is an excellent indicator of cosmological parameters because its abundance is highly sensitive to the primordial baryon density and to the number of relativistic species. Although astronomical observations of primordial deuterium abundance have reached percent accuracy, theoretical predictions based on BBN were hampered by large uncertainties on the cross-section of the deuterium burning D(p,γ)3He reaction, before the LUNA measurement. In the following, I will report the results of the experimental campaign carried on at LUNA and its cosmological implications.