SAN FRANCISCO (AP) — San Francisco teachers have reached a tentative agreement with the school district to end their strike, the first such walkout in nearly 50 years.

San Francisco Unified School District Superintendent Maria Su said schools will reopen to staff Friday and to students Wednesday after two holidays. District officials planned a news conference later Friday to share details on the agreement.

The strike by about 6,000 public schoolteachers started Monday. The district had closed all 120 of its schools and said it would offer independent study to some of its 50,000 students.

Teachers joined picket lines after last-ditch negotiations failed to reach a new contract. They were demanding higher wages, more health benefits, and more resources for students with special needs.

The union and the district had been negotiating for nearly a year, with teachers demanding fully funded family health care, salary raises and the filling of vacant positions impacting special education and services.