NORTHAMPTON, ENGLAND - APRIL 16: Mark Webber of Australia and Porsche Team 919 Hybrid talks to the media during previews the FIA World Endurance Championship Six Hours of Silverstone race at the Silverstone Circuit on April 16, 2016 in Northampton, England. (Photo by Ker Robertson/Getty Images)

Mark Webber has announced he'll retire from professional racing at the end of the world endurance season in Bahrain next month.

The 40-year-old Canberran competed in over 200 F1 grands prix, winning nine and finishing third in the drivers' championship on three occasions with Red Bull.

The Australian won the World Endurance title with Porsche last year with Germany's Timo Bernhard and New Zealander Brendon Hartley but said the time is right to hang up his helmet.

The six-hour race in Dubai on November 19 will be the last time Webber competes as a works driver and he'll take up a role as a Porsche special representative at global events and work as a consultant on motorsport programs.