This video shows crews fighting the rising flames in Port de Vilomara in the province Barcelona.
Local emergency services said the fire, which had spread to more than 1,200 hectares (2,965 acres), prompted the evacuation of residents.
Two planes and six helicopters assisted in the containment effort.
Temperatures had soared to over 40C in the area, raising the risk of wildfires.
click here to sign up for our newsletter.