The world's best surfers battled some of the world's most dangerous waves for what many are calling the best finals day in the history of professional surfing.

Gabriel Medina narrowly beat Kelly Slater to win the Billabong Pro Tahiti 2014, in 12-to-15 foot barreling waves at Teahupoo on the French Polynesian island.

Eleven-time world surfing champion Slater scored a perfect ten on his way to the final, but the Brazilian surfer finished just 0.03 points ahead of his American rival.

AFP photographer Gregory Boissy captured the surfers riding the massive turquoise barrel waves.

USA's Kelly Slater rides a wave during the third day of the Billabong Pro Tahiti surf event
USA's Kelly Slater rides a wave during the third day of the Billabong Pro Tahiti surf event(Gregory Boissy/AFP)
World number one, Brazil's Gabriel Medina rides a wave on his way to winning the 14th edition of the Billabong Pro Tahiti surf event
World number one, Brazil's Gabriel Medina rides a wave on his way to winning the 14th edition of the Billabong Pro Tahiti surf event(Gregory Boissy/AFP)
Australia's Mick Fanning wipes out on the third day
Australia's Mick Fanning wipes out on the third day(Gregory Boissy/AFP)
The Hava'e channel surfing spot during the second day of the Billabong Pro Tahiti surf event
The Hava'e channel surfing spot during the second day of the Billabong Pro Tahiti surf event(Gregory Boissy/AFP)
France's Michel Bourez rides a wave during the final round
France's Michel Bourez rides a wave during the final round(Gregory Boissy/AFP)
Brazil's Miguel Pupo rides a wave on the second day
Brazil's Miguel Pupo rides a wave on the second day(Gregory Boissy/AFP)
Tahitian surfer Alain Riou wipes out during the trials
Tahitian surfer Alain Riou wipes out during the trials(Gregory Boissy/AFP)
Lifeguards rescue Tahitian surfer Kevin Bourez after he was injured on the head during trials for the 2014 Billabong Pro Tahiti surf competition
Lifeguards rescue Tahitian surfer Kevin Bourez after he was injured on the head during trials for the 2014 Billabong Pro Tahiti surf competition(Gregory Boissy/AFP)
Australia's Kai Otton swims towards a wave as Australia's Dion Atkinson is seen at the top of the wave
Australia's Kai Otton swims towards a wave as Australia's Dion Atkinson is seen at the top of the wave(Gregory Boissy/AFP)
A rainbow is pictured during the finale of the 14th edition of the Billabong Pro Tahiti surf event in Teahupoo
A rainbow is pictured during the finale of the 14th edition of the Billabong Pro Tahiti surf event in Teahupoo(Gregory Boissy/AFP)
Australia's Owen Wright rides a wave during the final
Australia's Owen Wright rides a wave during the final(Gregory Boissy/AFP)
Australia's Taj Burrow falls as he rides a wave
Australia's Taj Burrow falls as he rides a wave(Gregory Boissy/AFP)
Brazil's Gabriel Medina reacts after beating Kelly Slater in the Billabong Pro Tahiti surf event in Teahupoo
Brazil's Gabriel Medina reacts after beating Kelly Slater in the Billabong Pro Tahiti surf event in Teahupoo(Gregory Boissy/AFP)