HUNTINGTON BEACH (CBSLA.com)  — An oil derrick buckled Monday in Huntington Beach, which forced some residents to evacuate from their homes.

READ MORE: No. 13 BYU Rallies From Blown Lead To Beat USC 35-31

Two men were doing routine maintenance on the derrick around 1:30 p.m. near Walnut and Second Street when they noticed it started to bend.

The Huntington Beach Fire Department evacuated 10 apartments and three homes in the vicinity of the rig, which was 60 to 70 feet in the air.

The derrick was then hooked up to a crane, and electricity was shut off in the area in the event the derrick were to fall onto power lines.

READ MORE: Suspicious Vehicle Prompts Response From SWAT, Beverly Hills Police

“Depending on whether they’re able to fold (the derrick) or whether they have to dismantle it, we’re gonna have to be careful to make sure it doesn’t swing one way or another. We’re still gonna keep everybody out of their homes until we can actually take it all the way down,” said Fire Capt. Bob Culhane.

Crews later used a cutting torch to remove the top of the derrick. Once the top was released, workers untangled the cables.

Residents were allowed back in their homes around 8 p.m.

Southern California Edison, along with the Orange County Fire Authority, was on the scene.

MORE NEWS: UCLA Runs Past Cal 42-14 To Wrap Up Eight-Win Regular Season

(©2013 CBS Local Media, a division of CBS Radio Inc. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed. Wire services contributed to this report.)