A wind-stoked wildfire that has been raging near a popular resort in south-western Turkey has been largely brought under control, President Recep Tayyip Erdogan said.

The blaze erupted on Tuesday in the Bordubet region, near Marmaris on the Aegean Sea coast, and spread rapidly, blackening swathes of pine forest and driving hundreds of people from their homes.

Speaking to reporters after an inspection of the area, Mr Erdogan said an estimated 4,000 hectares of forest was affected by the fire. Reforestation efforts would begin as soon as possible, he said.

“We saw a (fire) in one small area but other than that, thank God, it has been brought under control to a large extent,” he told reporters.

More than 45 people were affected by the blaze and 19 of them were taken to hospital for treatment, Mr Erdogan said.

“We are happy above all, that there was no loss of life and no one was reported missing,” he said.

Authorities on Thursday detained a 34-year-old man who allegedly confessed to having started the fire following a dispute with family members, Interior Minister Suleyman Soylu said.

Mr Erdogan said he favoured heavy punishment for people convicted of igniting wildfires, adding that the country should also start a debate on whether to restore the death penalty.

Turkey WildfireFlames burn in a forest in the Bordubet region (AP)

More than 2,500 firefighters and 41 water-dropping planes and helicopters were deployed to fight the blaze. On Friday, a plane from Azerbaijan and three helicopters from Qatar joined their efforts.

More than 400 people have been evacuated from their homes as a precaution, Turkey’s disaster management agency said.

Extended drought conditions in several Mediterranean countries, a heatwave last week that reached northern Germany and high fuel costs for aircraft needed to fight wildfires have heightened concerns across Europe this summer.

Last summer, blazes that were fed by strong winds and scorching temperatures tore through forests in Turkey’s Mediterranean and Aegean regions, including Marmaris. The wildfires, which killed at least eight people and countless animals, were described as the worst in Turkey’s history.

The government was criticised for its inadequate response and preparedness to fight large-scale wildfires, including a lack of modern firefighting planes.