BART will shut down train service between the Walnut Creek and Concord stations later this week to replace decades-old track.

The transit agency said instead of trains going over that stretch on June 21-22, it will provide free bus service between the Walnut Creek, Pleasant Hill/Contra Costa Centre, and Concord stations.

Riders can expect delays of 20 to 30 minutes through the area.

The project will also require BART to cancel some late-night and early-morning trains.

The schedule changes begin June 21, when the first southbound trains usually departing Concord at 5:35 a.m. and 5:55 a.m. will be canceled. Instead, the first southbound trains going to San Francisco will depart Walnut Creek at 5:43 a.m., 6:03 a.m. and 6:23 a.m.

To accommodate southbound passengers, buses will depart Concord at 5:23 a.m., 5:43 a.m. and 6:03 a.m. and Pleasant Hill at 5:30 a.m., 5:50 a.m., and 6:10 a.m. to connect with these trains.

On both nights of the closure, the last southbound train will depart Antioch at 11:42 p.m. The regular train from Pittsburg/Bay Point at 12:10 a.m. will be canceled. Riders must take the earlier southbound train, departing Antioch at 11:23 p.m. and Pittsburg/Bay Point at 11:44 p.m.

On June 22, the usual first southbound trains departing Concord at 7:35 a.m. and 7:55 a.m. will be canceled. Instead, the first trains going to San Francisco will depart the Walnut Creek station at 7:43 a.m., 8:03 a.m. and 8:23 a.m.

Buses will depart Concord at 7:23 a.m., 7:43 a.m. and 8:03 a.m. and Pleasant Hill at 7:30 a.m., 7:50 a.m. and 8:10 a.m. to connect with the trains.

BART said the work is part of the agency’s efforts to improve safety and reliability of the 131-mile, 50-station system. There are now more rebuilding projects happening across BART than at any point in its 50-year history.

People can keep up with the latest updates for trackway repair projects that impact service by going to BART’s alerts and advisories page.