An agreement announced Saturday, two months after the city rejected Success’ co-location plans, will provide space for three of its charter schools in shuttered Catholic school buildings.

Success Academy City Hall, which saw its hopes to land classrooms in Murry Bergtraum High School scrapped, will now move into the former Mother Cabrini High School in Washington Heights.

The Success academies in Harlem and Jamaica will take over the former Catholic Annunciation School building in Morningside Heights and St. Pius X School in Rosedale, respectively, come September.

Success Academy founder Eva Moskowitz — two days after ripping Mayor de Blasio at a press conference — on Saturday said she was “deeply grateful” to Hizzoner, and “heartened we’ve been able to put politics behind us and establish a positive working relationship.”

The Department of Education will pay for the schools’ leases instead of giving them space in existing public-school buildings.

Meanwhile de Blasio, Schools Chancellor Carmen Fariña and teachers union boss Michael Mulgrew spoke of “unity” at the United Federation of Teachers spring conference Saturday at the New York Hilton.

“For me this has been a natural partnership,” de Blasio said at the lovefest.

Mulgrew and Fariña agreed that teachers should “embrace” the new evaluation system — one critics say was badly weakened when legislators voted to delay tying student test scores to teacher assessment for two years.

Everyone was mum on ongoing contract talks between the city and the teachers union.