By ELISABETH BUMILLER

Published: February 1, 2001

The autobiography is to include the mayor's public life as well as what a person close to the negotiations described as his ''personal relationships'' -- a reference to the mayor's estranged wife, Donna Hanover, and his close companion, Judith Nathan.

The two-book deal was consummated yesterday evening at Gracie Mansion with two former mayoral enemies: Tina Brown, the chairwoman of Talk Media Inc., and Harvey Weinstein, the co-chairman of Miramax Films. In a blizzard of publicity in the summer of 1999, the Giuliani administration blocked Talk magazine from holding its inaugural party at the Brooklyn Navy Yard after learning that the mayor's likely opponent in the 2000 Senate race, Hillary Rodham Clinton, was to be the publication's first cover girl.

But all seemed forgotten yesterday as the mayor celebrated the $3 million deal at Gracie Mansion. ''We had a little laugh about that,'' Ms. Brown said last night. ''We all said it was a very entertaining thing and who would have thought we'd be together discussing a book? It's a testament to the mayor's sense of humor and sense of balance. He'd never let a party at the Brooklyn Navy Yard get between him and a great book deal.''

Bruce Teitelbaum, the mayor's former campaign manager, echoed Ms. Brown. ''I think that Rudy and Harvey are going to throw a terrific party sometime in the near future to celebrate the beginning of this relationship,'' he said.

Left unmentioned were the angry exchanges only 15 months ago between the Giuliani administration and Miramax Films, whose executives felt double-crossed by the city when a deal collapsed for a Miramax studio at the Brooklyn Navy Yard.

Ms. Brown and Jonathan Burnham, the president and editor in chief of Talk Miramax Books, said that the mayor's memoir is tentatively scheduled to be published in the fall of 2002, meaning that a completed manuscript would be due in the spring of that year, about six months after Mr. Giuliani leaves office because of term limits. Both Ms. Brown and Mr. Burnham said that the mayor planned to begin researching his book immediately, and that he would soon be hiring a collaborator.

Talk Miramax Books issued this statement last night from Mr. Giuliani: ''I very much look forward to working with Harvey, Tina and Jonathan on these books. Talk Miramax Books is the most exciting new imprint to appear on the publishing scene for quite some time, and their enthusiasm coupled with their professionalism convinced me that this was a perfect match.''

Ms. Brown said that the mayor's memoir would cover his childhood, his prosecutions on Wall Street, his years as mayor and 2000 -- the year Mr. Giuliani announced that he had prostate cancer, was leaving his wife, had a relationship with Ms. Nathan and was dropping out of his Senate race against Mrs. Clinton.

''The book is very much going to be about a personal odyssey as well as a professional career,'' Ms. Brown said.

Mr. Giuliani's agent in the deal was Brad Grey, the chairman of Brillstein-Grey Entertainment in Los Angeles and an old friend of Mr. Weinstein. Mr. Grey said that over the past 10 days, Mr. Giuliani met with six or seven publishers at Gracie Mansion, among them Random House, Simon & Schuster and HarperCollins. But Talk Miramax, he said, was the most enthusiastic.

In the statement released last night, Ms. Brown said that Mr. Giuliani's stories of prosecuting white-collar criminals and running the city had left her ''spellbound.''

Mr. Giuliani's book deal, as lucrative as it is, does not match the recent book deal of his former Senate opponent. In December, Mrs. Clinton made an agreement with Simon & Schuster to write her memoir for an advance of $8 million.