Max Capital has bought out Robert Bass and its other partners in two city properties for $461 million, The Post has learned.

Adam Hochfelder, chairman and CEO of Max Capital, also lined up new equity partners – Alan Landis and his son, Scott, of the Landis Group – in the properties at 1440 Broadway and 350 Madison Ave. The transaction also included the purchase of Detroit’s newest Class A office tower.

“It was a hairy deal,” one exhausted participant said.

That’s because Hochfelder was under pressure from the original lender and partner, Credit Suisse First Boston, which wanted to get its dollars out and close before the end of the year.

“It was touch and go, and they worked the entire weekend of Dec. 28 before closing on Monday,” the source said.