The shutdown began near Ball Road at about 3 a.m., according to a California Highway Patrol incident log.
Traffic was backed up for miles in both directions as authorities diverted northbound traffic at Harbor Boulevard and southbound traffic at Lincoln Avenue.
Most of the northbound lanes were reopened shortly after 6:30 a.m., though two lanes remained closed at Lincoln Avenue, as did the ramps in that area, while the southbound side of the interstate remained at a standstill.
By around noon, the HOV lane was open on the southbound side to help ease some of the freeway gridlock.
By around 2 p.m., all lanes were reopened after police peacefully resolved the situation.
Police chase ends in dramatic standoff on 5 Freeway in San Clemente; all SB lanes closed
The 57 Freeway was recommended as an alternative route.
Meanwhile, some 30 miles south of the Anaheim scene, the southbound 5 Freeway was also closed in San Clemente after a domestic violence incident led to a police chase and a dramatic standoff.