Ocean Beach Pier was closed for most of the day Tuesday due to high surf, according to San Diego Fire-Rescue officials.

Video showed huge waves crashing on the nearly 50-year-old pier. Lifeguards were on alert because of a high surf advisory in effect through late in the day.

Surfers and swimmers have been warned of 8- to 10-foot waves and strong rip currents along the coastline.

By 3 p.m., officials had reopened the pier after minor repairs to the railing.

LOOK: high waves crash into Ocean Beach pier; lifeguards closed it down. Dozens out here watching view @nbcsandiego pic.twitter.com/IVm6mbm5WW — Liz Bryant (@LizBryantTV) December 8, 2015

On Monday, lifeguards used the San Diego Fire-Rescue helicopter to rescue a surfer who was stranded two miles from where he went into the water.

The man was a little shaken up, cold and suffered a few scratches according to Lt. John Sandleyer.

“He seemed like he had good experience and that always pays off when confronted by a situation like that,” Sandleyer said.

NBC 7 Meteorologist Jodi Kodesh said the high surf was expected until the evening for beaches south of La Jolla.

The reason for the high surf is because of a Pacific storm system, while the high tide is tied to a new moon.

This raw video captured from NBC 7 Newschopper shows how high the waves were along the OB Pier at 7 a.m. Tuesday.

Refresh this page for updates on this breaking news story.