Bill and Melinda Gates bought a condominium unit in East Harlem for $5 million. But it’s not for them.

The deal for the unit at 1212 Fifth Avenue closed in December 2017, the New York Post reported. The condo, purchased for their daughter Jennifer, was last asking $5.25 million.

The purchase went through a trust administered by Watermark Estate Management Services LLC, which Bill Gates uses for personal and family matters, according to the newspaper. The listing brokers were Brown Harris Stevens’ Wendy Sarasohn, Jamie Joseph and Tania Isacoff.

The apartment’s sellers were David Zornow and Martha Malkin Zornow, the Post said. David is global head of litigation at Skadden, Arps, Slate, Meagher & Flom — and Martha is the founding principal of Girls Prep Bronx Middle School.

The three-bedroom condo spans 2,389 square feet with views of Central Park. The building was constructed in 1925 and designed by architects George and Edward Blum. It was gut-renovated in 2012.

Earlier this year, the Gateses bought a $16 million farm in North Salem. Reports said it was also for their daughter, who’s an equestrian. [NYP] — Meenal Vamburkar