A wedding party had to be airlifted out of the flaming foothills of San Gabriel, Calif., after becoming trapped by wildfires that ravaged the region.

Bride and groom Julie and Ken Grady, along with 45 guests and four pets, were evacuated Sunday morning to a shelter after a mountain-top ceremony the previous night, MyFOXLosAngeles reported.

The party had hiked four miles up the mountain for the marriage.

Fortunately, the Gradys weren't in their wedding best when helicopters swooped in to take them out of the hotspot.

It took three trips for Los Angeles County Sheriff's "Air 5" chopper to get the entire group to safety, according to MyFOXLosAngeles.

"It was very steep, we could only do a two wheel-landing on the hillside while we loaded them," said sheriff's Sgt. Phil Barth. "They looked a little bit bewildered, as it can be a bit traumatic getting into that helicopter for the first time."

The fires in the Pasadena area have forced about 1,000 residents from their homes and left 400 acres scorched.

Click here for more on this story from MyFOXLA.com.