NEW YORK — When Ed Koch was mayor, it seemed as if all of New York was being run by a deli counterman. Koch was funny, irritable, opinionated, often rude and prone to yelling.
And it worked, for a while at least.
With a Bronx-born combination of chutzpah and humor, Koch steered New York back from the brink of financial ruin and infused the city with new energy and optimism in the 1970s and `80s while racing around town, startling ordinary New Yorkers by asking, "How'm I doing?" He was usually in too much of a hurry to wait for an answer.
Koch died of congestive heart failure Friday at 88, after carefully arranging to be buried in Manhattan because, as he explained with what sounded like a love note wrapped in a zinger: "I don't want to leave Manhattan, even when I'm gone. This is my home. The thought of having to go to New Jersey was so distressing to me."
Tributes poured in from political allies and adversaries, some of whom were no doubt thinking more of his earlier years in City Hall, before many black leaders and liberals became fed up with what they felt were racially insensitive and needlessly combative remarks.
The Rev. Al Sharpton said in a statement that although they disagreed on many things, Koch "was never a phony or a hypocrite. He would not patronize or deceive you. He said what he meant. He meant what he said. He fought for what he believed. May he rest in peace."
During Koch's three terms from 1978 to 1989, he helped New York climb out of its financial crisis through tough fiscal policies and razor-sharp budget cuts, and subway service improved enormously. To much of the rest of America, the bald, paunchy Koch became the embodiment of the brash, irrepressible New Yorker.
He was quick with a quip or a putdown, and when he got excited or indignant – which was often – his voice became high-pitched. He dismissed his critics as "wackos," feuded with Donald Trump ("piggy") and fellow former Mayor Rudolph Giuliani ("nasty man"), lambasted the Rev. Jesse Jackson, and once reduced the head of the City Council to tears.
"You punch me, I punch back," Koch once observed. "I do not believe it's good for one's self-respect to be a punching bag."
Or, as he put it in "Mayor," his best-selling autobiography: "I'm not the type to get ulcers. I give them."
Koch's favorite moment as mayor, fittingly, involved yelling. During a transit strike that brought the subways and buses to a halt in 1980, he strode down to the Brooklyn Bridge to boost the spirits of commuters who had to walk to work.
"I began to yell, `Walk over the bridge! Walk over the bridge! We're not going to let these bastards bring us to our knees!' And people began to applaud," he recalled.
New Yorkers eventually tired of Koch.
Homelessness and AIDS soared in the 1980s, and critics charged that City Hall's response was too little, too late. Koch's latter years in office were also marked by scandals involving those around him and rising racial tension. In 1989, he lost a bid for a fourth term to David Dinkins, who became the city's first black mayor.
On Friday, Dinkins called Koch "a feisty guy who would tell you what he thinks."
"Ed was a guy to whom I could turn if I wanted a straight answer," he told Fox 5 News.
Mayor Michael Bloomberg saluted Koch as "a civic savior for our city in desperate times," saying "the whole city was crumbling" when Koch was elected.
"When we were down, Ed Koch picked us up. When we were worried, he gave us confidence. When someone needed a good kick in the rear, he gave it to them - and, if you remember, he enjoyed it," Bloomberg said.
Former President Bill Clinton and former Secretary of State Hillary Rodham Clinton remembered Koch as a fierce advocate for his city and a friend "whose convictions ran deep."
The Clintons recalled Koch as a man with a personality big enough to match the nation's largest city. They call him a leader who "stood up for the underprivileged and underrepresented" in every corner of New York.
A lifelong bachelor who lived in Greenwich Village, Koch championed gay rights, taking on the Roman Catholic Church and scores of political leaders. His own sexual orientation was the subject of speculation and rumors. During his 1977 mayoral campaign against Mario Cuomo, posters that read "Vote for Cuomo, Not the Homo" mysteriously appeared in some neighborhoods.
Koch offered a typically blunt response to questions about his sexuality: "My answer to questions on this subject is simply, `F--- off.' There have to be some private matters left."
Koch was also proudly Jewish and an outspoken supporter of Israel.
After leaving office, he continued to offer his opinions as a political pundit, movie reviewer, food critic and judge on "The People's Court." Even in his 80s, he exercised regularly and worked as a lawyer.
Describing himself as "a liberal with sanity," Koch pursued a fearlessly independent course. When President George W. Bush ran for re-election in 2004, Democrat Koch supported him and spoke at the GOP convention. He also endorsed Bloomberg's re-election at a time when Bloomberg was a Republican.
Edward Irving Koch was born in the Bronx on Dec. 12, 1924, the second of three children of Polish immigrants. During the Depression the family lived in Newark, N.J.
The future mayor worked his way through school, checking hats, working behind a delicatessen counter and selling shoes. He attended City College of New York and served as a combat infantryman in Europe during World War II.
He received a law degree from New York University in 1948 and began his political career in Greenwich Village as a liberal Democratic reformer, beating the powerful old-school party boss Carmine DeSapio in a race for district leader.
Koch was elected to the City Council and then to Congress, serving from 1969 to 1977 as the representative from the wealthy East Side's "Silk Stocking" district.
His politics edged to the center of the political spectrum during his years in Congress and pulled to the right on a number of issues after he became mayor.
Drugs? Send convicted dealers to concentration camps in the desert. Decaying buildings? Paint phony windows with cheery flowerpots on brick facades. Overcrowded jails? Stick inmates on floating prison barges.
With New York in dire financial condition in 1977, Koch defeated Mayor Abe Beame and Cuomo in the Democratic primary to win his first term in City Hall. He breezed to re-election in 1981 and 1985, winning an unprecedented three-quarters of the votes cast.
In 1982, he made a run for governor against then-Lt. Gov. Cuomo. But his bid blew up after he mouthed off about life outside the big city.
"Have you ever lived in the suburbs?" Koch told an interviewer about a possible move to Albany. "It's sterile. It's nothing. It's wasting your life." He said life in the country meant having to "drive 20 miles to buy a gingham dress or a Sears, Roebuck suit."
It cost him the race.
Koch's third term was beset by corruption scandals, one of which ended in the suicide of a top party boss in 1986. Also, Koch's friend and commissioner of cultural affairs, former Miss America Bess Myerson, stepped down after being accused of trying to influence the judge in a court case involving her boyfriend.
Koch fell out with many black voters for purging anti-poverty programs and saying, among other things, that busing and racial quotas had done more to divide the races than to achieve integration. He also said Jews would be "crazy" to vote for Jackson during the civil rights leader's 1988 presidential campaign.
Racial tensions were running high at the time because of the deaths of two young black men who were set upon by gangs of whites in 1986 and 1989.
Koch later said the simmering tensions didn't lead to his defeat. "I was defeated because of longevity," he said. "People get tired of you. So they decided to throw me out."
But he also said his biggest regret as he left office was that "many people in the black community do not perceive that I was their friend."
On Friday, Jackson said in a statement that Koch's "leadership and legacy will never be forgotten in New York City, New York state or our nation."
Koch wrote 10 nonfiction books, including "His Eminence and Hizzoner," written with Cardinal John O'Connor. He also turned out four mystery novels and three children's books.
He played himself in the movies "The Muppets Take Manhattan" and "The First Wives Club" and hosted "Saturday Night Live." In 1989's "Batman," Gotham City's mayor bore a definite resemblance to Koch.
At 83, Koch paid $20,000 for a burial plot at Trinity Church Cemetery, at the time the only graveyard in Manhattan that still had space. He had his tombstone inscribed with the last words of Daniel Pearl, the Wall Street Journal reporter beheaded by Islamic militants: "My father is Jewish, my mother is Jewish, I am Jewish."
The funeral will be Monday at Temple Emanu-El in Manhattan. Dignitaries including New York City Mayor Michael Bloomberg and Ido Aharoni, the Israeli consul general in New York, will be among the speakers, a person familiar with the arrangements, speaking on condition of anonymity, told the AP.
Koch is survived by his sister, Pat Thaler, and many grandnieces and grandnephews.
Associated Press writer Samantha Gross contributed to this report.
Related on HuffPost:
Ed Koch On The Subway
UNITED STATES - JANUARY 02: Mayor Ed Koch rides the subway. (Photo by Harry Hamburg/NY Daily News Archive via Getty Images)
FILE - In this Sept. 24, 1982, file photo, New York Mayor Ed Koch makes his concession speech after losing the Democratic gubernatorial primary election to New York Lt. Gov. Mario Cuomo in New York. Koch, the combative politician who rescued the city from near-financial ruin during three City Hall terms, has died at age 88. Spokesman George Arzt says Koch died Friday morning Feb. 1, 2013 of congestive heart failure. (AP Photo/Ray Stubblebine, File)
Mario Cuomo, Edward Koch
FILE - In this Sept. 16, 1977 file photo, Democratic Mayoral runoff candidates Mario Cuomo, left, and Edward Koch talk to reporters in New York during the taping of their debate for NBC-TV's "Positively Black" show. Koch died Friday, Feb. 1, 2013 from congestive heart failure, spokesman George Arzt said. He was 88. (AP Photo/Marty Lederhandler)
In this Sept. 11, 1985 file photo, New York Mayor Ed Koch raises his arms in victory at the Sheraton Centre in New York after winning the Democratic primary in his bid for a third four-year term. Koch died Friday, Feb. 1, 2013 from congestive heart failure, spokesman George Arzt said. He was 88. (AP Photo/Mario Suriani, file)
In this Sept. 7, 1981 file photo, New York City Mayor Ed Koch, center, gestures as he marches in a Labor Day parade down New York's Fifth Avenue. Koch died Friday, Feb. 1, 2013 from congestive heart failure, spokesman George Arzt said. He was 88. (AP Photo/Perez, file)
In this Aug. 13, 1987 file photo, New York Mayor Edward I. Koch waves to onlookers as he arrives at New York's Columbia Presbyterian Hospital Neurological Center. Koch died Friday, Feb. 1, 2013 from congestive heart failure, spokesman George Arzt said. He was 88. (AP Photo/David Bookstaver, file)
FILE - In this Aug. 21, 1997 file photo, former New York Mayor Ed Koch, now the presiding judge on "The People's Court," tapes a show at a New York studio. Koch died Friday, Feb. 1, 2013 from congestive heart failure, spokesman George Arzt said. He was 88. (AP Photo/Mark Lennihan, file)
FILE - In this Nov. 8, 1977 file photo, Rep. Edward Koch, second from left, raises hands with Bess Myerson, left, Carol Bellamy, center Diana Goldin, second from right, and her husband Harrison Goldin at a Midtown New York Hotel. Koch was elected New York City Mayor, Miss Bellamy was elected city council President and Goldin was re-elected city comptroller. Koch, the combative politician who rescued the city from near-financial ruin during three City Hall terms, has died at age 88. Spokesman George Arzt says Koch died Friday morning Feb. 1, 2013 of congestive heart failure. (AP Photo/Ray Stubblebine, File)
FILE - In this Jan. 30, 1975, file photo, Jacqueline Kennedy Onassis, center left, and Bess Myerson, center right, walk with architect Philip Johnson, left, and Rep. Ed Koch, right, as they leave New York's Grand Central after holding a news conference for the "Committee to Save Grand Central Station." Koch, the combative politician who rescued the city from near-financial ruin during three City Hall terms, has died at age 88. Spokesman George Arzt says Koch died Friday morning Feb. 1, 2013 of congestive heart failure. (AP Photo/Harry Harris, File)
FILE - In this March 15, 1987 file photo, New York Mayor Ed Koch gets his head powered by a make-up artist before the start of his new television call-in program, "Koch on Call" at New York's Channel 5. Koch, the combative politician who rescued the city from near-financial ruin during three City Hall terms, has died at age 88. Spokesman George Arzt says Koch died Friday morning Feb. 1, 2013 of congestive heart failure. (AP Photo/David Bookstaver, File)
FILE - In this Feb. 2, 1978, file photo, New York Mayor Ed Koch, left, and former Rep. Bella Abzug, D-N.Y., center, chat with President Jimmy Carter during a meeting in the Oval Office in Washington. Koch, the combative politician who rescued the city from near-financial ruin during three City Hall terms, has died at age 88. Spokesman George Arzt says Koch died Friday morning Feb. 1, 2013 of congestive heart failure. (AP Photo/John Duricka, File)
FILE - In this March 1, 2011 file photo, former New York Mayor Ed Koch speaks during a news conference in Albany, N.Y. Koch, 88, has been moved to intensive care, Thursday, Jan. 31, 2013. Spokesman George Arzt said that Dr. Joseph Tenenbaum, who's Koch's cardiologist and lead doctor, wanted to monitor the former mayor more closely. (AP Photo/Mike Groll, File)
FILE - In this Dec. 10, 2012 file photo, former New York City Mayor Ed Koch says good-bye to reporters as he gets in his car after being released from the hospital in New York. A spokesman says Koch now expects to get out of the hospital on Saturday, Jan. 26, 2013. Spokesman George Arzt said Friday that Koch originally expected to remain over the weekend at NewYork-Presbyterian/Columbia hospital. But doctors changed their minds and decided to let him out Saturday instead. He was admitted last Saturday night with fluid in his lungs and swollen ankles. Doctors have told the 88-year-old ex-mayor to limit his salt intake. (AP Photo/Seth Wenig, file)
Former New York City Mayor Ed Koch, right, speaks to reporters as he is released from the hospital in New York, Monday, Dec. 10, 2012. He was admitted last week to NewYork-Presbyterian Hospital with pneumonia and the flu. (AP Photo/Seth Wenig)
Ed Koch, Rory Lancman
FILE - In this May 16, 2012 file photo, former New York City mayor Ed Koch, right, talks to reporters as Assemblyman Rory Lancman looks on. Koch, 87, was admitted to New York Presbyterian Hospital with a respiratory infection on Tuesday, Dec. 4, 2012 and is being treated with antibiotics. Its Kochs second hospitalization in three months. (AP Photo/Seth Wenig, File)
Veteran's Day Parade Held In New York City
NEW YORK, NY - NOVEMBER 11: Former Mayor Ed Koch takes part in The Wreath Laying Ceremony during the Veteran's Day Parade on November 11, 2012 in New York City. Mayor Koch is the grand marshal for the parade, which expects to draw thousands of spectators and is the commemoration of the 50th anniversary of the start of the Vietnam War. (Photo by Michael Loccisano/Getty Images)
Gubernatorial Candidate Andrew Cuomo Campaigns In New York City
NEW YORK - OCTOBER 05: New York Democratic gubernatorial candidate Andrew Cuomo (L) laughs with former New York City mayor Ed Koch at a press conference at John Jay College October 5, 2010 in New York City. Koch, who had defeated Cuomo's dad, Mario, in the New York City mayoral race in 1977, endorsed Cuomo. Cuomo is engaged in a bitter battle with Republican Carl Paladino in the race. (Photo by Mario Tama/Getty Images)
Historic House Trust of New York City Honors Former Mayor Edward I. Koch
NEW YORK - JUNE 17: (L-R)Franny Eberhart, Joseph Pierson and Ed Koch attend the Historic House Trust of New York City Founders Award Dinner at Gracie Mansion on June 17, 2010 in New York City. (Photo by Donald Bowers/Getty Images for Historic House Trust of New York City)
Michael Bloomberg Is Sworn In For Third Term As New York City Mayor
NEW YORK - JANUARY 1: The crowd give applause for New York City Mayor Michael Bloomberg after he delivered his inaugural speech as Diana Taylor (L), his daughters Georgina Bloomberg (2nd-L) and Emma Bloomberg (R), former New York City Mayors David Dinkins (2nd row-2nd-R) and Ed Koch (2nd row-R) look on January 1, 2010 at City Hall in New York City. Bloomberg launched his third term in office. (Photo by Hiroko Masuike/Getty Images)
New York Yankees World Series Victory Parade
NEW YORK - NOVEMBER 06: (L-R) Former New York City Mayors David Dinkins, Ed Koch, and Rudolph Giuliani talk prior to the start of the New York Yankees World Series Victory Celebration at City Hall on November 6, 2009 in New York, New York. (Photo by Jim McIsaac/Getty Images)
The Cinema Society & Details Host A Screening Of "Milk" - After Party
NEW YORK - NOVEMBER 18: Former New York City mayor Ed Koch attends the after party for a screening of 'Milk' hosted by The Cinema Society at Bowery Hotel on November 18, 2008 in New York City. (Photo by Stephen Lovekin/Getty Images)
Former New York City mayors Rudy Giulian
Former New York City mayors Rudy Giuliani (R) and Ed Koch (C) listen as US President George W. Bush speaks during an address on the financial markets and world economy November 13, 2008 at the Federal Hall National Memorial in New York City. AFP PHOTO/Mandel NGAN (Photo credit should read MANDEL NGAN/AFP/Getty Images)
Brooke Astor's Funeral Service - New York
NEW YORK - AUGUST 17: (L-R) New York City Mayor Michael Bloomberg and former NYC Mayors David Dinkins and Ed Koch leave the church after funeral services for philanthropist Brooke Astor at St. Thomas Church on August 17, 2007 in New York City. Astor died on Monday, August 13, 2007 at age 105. (Photo by Donna Ward/Getty Images)
Publisher's Weekly Celebrates The Strand's 80 Years
NEW YORK - JUNE 02: (L-R) Writer Adam Gopnik shakes hands with former NYC Mayor Ed Koch during Publisher Weekly's celebration party for Strand Bookstore's 80 years in business at Strand Bookstore on June 02, 2007 in New York City. (Photo by Scott Wintrow/Getty Images)
Publisher's Weekly Celebrates The Strand's 80 Years
NEW YORK - JUNE 02: (R) Writer Fran Lebowitz speaks while former NYC Mayor Ed Koch listens during Publisher Weekly's celebration party for Strand Bookstore's 80 years in business at Strand Bookstore on June 02, 2007 in New York City. (Photo by Scott Wintrow/Getty Images)
Former New York mayors David Dinkins (L)
New York, UNITED STATES: Former New York mayors David Dinkins (L) and Ed Koch (R) listen to US President George W Bush speak at Federal Hall 31 January 2007 New York, New York. Bush urged the opposition-held US Congress to renew his sweeping powers to negotiate trade deals before such authority lapses at the end of June. Bush called Trade Promotion Authority, which binds Congress to yes-or-no votes on any trade agreements he negotiates, 'essential' to global free trade talks and bilateral commercial deals. AFP PHOTO/Brendan SMIALOWSKI (Photo credit should read BRENDAN SMIALOWSKI/AFP/Getty Images)
GOP Kicks Off RNC Convention
NEW YORK, NY - AUGUST 30: Former New York Mayor Ed Koch speaks during the opening session of the 2004 Republican National Convention August 30, 2004 at Madison Square Garden in New York City. (Photo by Alex Wong/Getty Images)
The New York Times Welcomes The Republican National Convention
NEW YORK - AUGUST 30: Former New York Mayor Ed Koch and former Governor of New York Mario Cuomo attend a party hosted by Arthur O. Sulzberger Jr. publisher of the New York Times at the Frederick P. Rose Hall August 30, 2004 in New York City. (Photo by Bowers/Getty Images)
The New York Times Welcomes The Republican National Convention
NEW YORK - AUGUST 30: Ed Koch (L) and Abe Rosenthal attend a party hosted by Arthur O. Sulzberger Jr. publisher of the New York Times at the Frederick P. Rose Hall August 30, 2004 in New York City. (Photo by Bowers/Getty Images)
US Secretary of State Colin Powell (R) l
BERLIN, GERMANY: US Secretary of State Colin Powell (R) looks on as Former New York City Mayor Ed Koch is seen in the background at a mayor OSCE international conference on anti-Semitism in Berlin 28 April 2004. Delegates to the conference warn that hatred of Jews is gaining momentum again in parts of Europe and call for united efforts in education and law enforcement to combat the problem. AFP PHOTO DDP/MICHAEL URBAN GERMANY OUT (Photo credit should read MICHAEL URBAN/AFP/Getty Images)
Former New york City mayors Ed Koch (L)
Former New york City mayors Ed Koch (L) and David Dinkins (C) talk with current NYC Mayor Michael Bloomberg as they watch from the President's Box during the women's final at the 2003 US Open tennis championships at Flushing Meadows in New York, 06 September 2003. AFP PHOTO Timothy A. CLARY (Photo credit should read TIMOTHY A. CLARY/AFP/Getty Images)
Koch, Bloomberg, and Dinkins at US Open
FLUSHING, NY - SEPTEMBER 6: Former New York City Mayors Ed Koch (L) and David Dinkins (R) attend the US Open with current Mayor Michael Bloomberg (M) at the USTA National Tennis Center on September 6, 2003 in Flushing, New York. (Photo by M. David Leeds/Getty Images)
US First lady Hillary Rodham Clinton (R) and daugh
NEW YORK, UNITED STATES: US First lady Hillary Rodham Clinton (R) and daughter Chelsea Clinton (L) wave to supporters before former New York mayor Ed Koch (background, center) following Mrs. Clinton's victory over Republican Congressman Rick Lazio in the New York senate race 07 November 2000 in New York. AFP PHOTO/Matt CAMPBELL (Photo credit should read MATT CAMPBELL/AFP/Getty Images)
St. Patrick's Day Parade
N366199 04: First Lady and Senate hopeful Hillary Clinton talks to former New York City Mayor Ed Koch along the parade route of the St. Patrick's day parade in New York City, N.Y., March 17, 2000. (Photo by Chris Hondros)
Former New York City Mayor Ed Koch wears a Bill Br
NEW YORK, UNITED STATES: Former New York City Mayor Ed Koch wears a Bill Bradley hat as he rests on a park bench while waiting for Bradley, who was a half-hour late, to arrive at a campaign stop in Washington Square Park, 04 March, 2000, during a day of campaigning in New York City. The New York State primary is three days away on Super Tuesday, 07 March.AFP PHOTO/Matt CAMPBELL (Photo credit should read MATT CAMPBELL/AFP/Getty Images)
Former New York City Mayor Ed Koch gestures as he
NEW YORK, UNITED STATES: Former New York City Mayor Ed Koch gestures as he answers questions from reporters at New York University Hospital 22 March, 1999. Koch was rushed to the hospital from the New York Sports Club where he was working out. Doctors said his blood pressure was very low but he is reported in stable condition. AFP PHOTO/Don EMMERT (Photo credit should read DON EMMERT/AFP/Getty Images)
Former New York City Mayor Ed Koch gestures to rep
NEW YORK, UNITED STATES: Former New York City Mayor Ed Koch gestures to reporters at New York University Hospital 22 March, 1999. Koch was rushed to the hospital from the New York Sports Club where he was working out. Doctors said his blood pressure was very low but he is reported in stable condition. AFP PHOTO/Don EMMERT (Photo credit should read DON EMMERT/AFP/Getty Images)
Queensboro Bridge Renamed In Honor Of Ed Koch
NEW YORK, NY - MAY 19: Ed Koch celebrates at the renaming of the Queensboro Bridge in his honor at The Water Club Restaurant on May 19, 2011 in New York City. (Photo by JP Yim/Getty Images)