LISBON, Portugal (AP) — A major wildfire blackening hills in Portugal's southern Algarve region likely will take several more days to bring under control, the country's prime minister said Wednesday.

Portuguese Prime Minister Antonio Costa said that efforts to control the fire that broke out Friday were being hampered by gusting winds, the region's deep ravines and the numerous plantations where combustible eucalyptus is grown for paper pulp.

Costa spoke after visiting the headquarters of the Portuguese Civil Protection Agency, the government body that is coordinating the emergency response to the fire.

The Civil Protection Agency said almost 1,300 firefighters from across Portugal were assigned to the blaze, the most since it started. Public TV network RTP said more than 20,000 hectares (49,000 acres) have burned in the fire.

The prime minister is aware of potential political repercussions from major wildfires; the deaths of 109 people in blazes last year almost brought down his government.

Costa acknowledged that much more work was needed to prevent catastrophic fires, including diversifying the vegetation in Portugal's forests and establishing fire breaks.

High clouds of black smoke have towered for days over the Algarve region, a top European vacation destination.

While winds have made the firefighting effort more difficult, crew working overnight kept flames from reaching the town of Silves, a popular tourist spot and home to about 6,000 people.

The torrid weather that has hung over much of Europe for weeks also was subsiding, with a high of 31 degrees Celsius (88 F) forecast for the Algarve on Wednesday.

Along with ground crews, 13 aircraft and more than 380 vehicles were battling the blaze.

In neighboring Spain, 27 aircraft were helping some 700 firefighters put out a fire near Valencia. Radio broadcaster Cadena SER said nearly 2,900 hectares have been burned.

Copyright 2018 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.