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.

Billabong Pro Tahiti 2014 surfing
USA's Kelly Slater rides a wave during the third day of the Billabong Pro Tahiti surf event(Gregory Boissy/AFP)
Billabong Pro Tahiti 2014 surfing
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)
Billabong Pro Tahiti 2014 surfing
Australia's Mick Fanning wipes out on the third day(Gregory Boissy/AFP)
Billabong Pro Tahiti 2014 surfing
The Hava'e channel surfing spot during the second day of the Billabong Pro Tahiti surf event(Gregory Boissy/AFP)
Billabong Pro Tahiti 2014 surfing
France's Michel Bourez rides a wave during the final round(Gregory Boissy/AFP)
Billabong Pro Tahiti 2014 surfing
Brazil's Miguel Pupo rides a wave on the second day(Gregory Boissy/AFP)
Billabong Pro Tahiti 2014 surfing
Tahitian surfer Alain Riou wipes out during the trials(Gregory Boissy/AFP)
Billabong Pro Tahiti 2014 surfing
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)
Billabong Pro Tahiti 2014 surfing
Australia's Kai Otton swims towards a wave as Australia's Dion Atkinson is seen at the top of the wave(Gregory Boissy/AFP)
Billabong Pro Tahiti 2014 surfing
A rainbow is pictured during the finale of the 14th edition of the Billabong Pro Tahiti surf event in Teahupoo(Gregory Boissy/AFP)
Billabong Pro Tahiti 2014 surfing
Australia's Owen Wright rides a wave during the final(Gregory Boissy/AFP)
Billabong Pro Tahiti 2014 surfing
Australia's Taj Burrow falls as he rides a wave(Gregory Boissy/AFP)
Billabong Pro Tahiti 2014 surfing
Brazil's Gabriel Medina reacts after beating Kelly Slater in the Billabong Pro Tahiti surf event in Teahupoo(Gregory Boissy/AFP)