A gas line break closed the intersection of First Street and Vineyard Avenue for several hours Thursday morning.
Police shut down the intersection around 10:45 a.m. and advised motorists to avoid the area. The area was reopened at 2:02 p.m.
PG&E spokeswoman Tamar Sarkissian said the gas leak was caused by a construction crew working in the area around 10:30 a.m.
"Safety is our top priority," she said.
An excavator appeared to have dug into a gas line, and utility crews stopped the flow of gas at 12:07 p.m., she said. The road closures lasted until shortly after the gas line was repaired.
Pleasanton police Lt. Brian Laurence said the 76 and Shell gas stations at the intersection and businesses in Pleasant Plaza were closed temporarily.
Livermore-Pleasanton Fire Department battalion chief Mike Miller said there were no injuries as a result of the leak.
"Our goal is really to get this cleaned up before the evening rush hour," he said.
Sarkissian said residents should always call 811 before planning a digging project -- large or small -- to see what utility lines exist before breaking ground.