The fire burned at least 5,450 acres just north of State Route 138. Caltrans advised commuters to avoid the area because heavy delays were expected.
All lanes on the 15 Freeway were temporarily shut down between State Route 130 and Oak Hill Road. They were reopened in both directions on Saturday.
Mandatory evacuations were issued for the Baldy Mesa areas east of Sheep Creek Road, north of Highway 138, west of 15 Freeway and Highway 395 and south of Phelan Road. At about 6:30 p.m. Saturday, residents were being allowed back in through Baldy Mesa and Phelan roads.
An evacuation center was set up at Serrano High School, 9292 Sheep Creek Rd. in Phelan.
San Bernardino County Animal Control has set up by an animal shelter at the San Bernardino County Fairgrounds, 14800 7th St. in Victorville.
PHOTOS: Brush fire erupts next to 15 Freeway in Cajon Pass
PHOTOS: Crews battle Rocky Fire in three Northern California counties
Thousands have been evacuated from the path of the Rocky Fire, a massive wildfire that started burning near Clear Lake on Wednesday, July 29, 2015. The explosive fire is now burning in three Northern California counties -- Lake County, Colusa County, and Yuba County.