A nearly 4,000-acre wildfire that blackened hillsides above expensive oceanfront homes was nearly surrounded Monday despite a weekend resurgence of fierce, dry Santa Ana winds.

The blaze was 90 percent contained and no homes were threatened.

"The winds were our main concern," said Joe Luna, a spokesman for the Ventura County Fire Department. "But now that we improved our containment lines, the winds won't be much of a threat."

Gusts of nearly 50 mph at times Sunday followed a day of cooler ocean breezes that helped fire crews gain the upper hand.

The blaze began Friday, but firefighters expected to have it fully contained by Tuesday evening, Luna said.

The cause of the fire remained under investigation.