The 1945 New York City mayoral election took place on November 6, 1945, in New York City. The candidates were King County District Attorney William O'Dwyer, a Democrat, and Jonah J. Goldstein, a Republican judge, as well as other, third-party candidates.
O'Dwyer won the contest with 56.77% of the vote.
Democratic nomination.
William O'Dwyer, who had built his reputation as Brooklyn's top prosecutor on his case against Murder, Inc., ran for mayor once again. In 1941, William O'Dwyer lost to incumbent Fiorello LaGuardia by over 100,000 votes. In the following years, however, he enhanced his political image by enlisting in World War II. Behind the scenes, he also cultivated ties to powerful members of Tammany Hall, which had reluctantly backed his 1941 campaign, and allegedly sought common cause with organized crime figures such as Frank Costello.
With both popular and party support, O'Dwyer had no trouble gaining the Democratic nomination for a second consecutive campaign, though he bowed to pressure from U.S. Representative Vito Marcantonio and gangster Thomas Luchese to nominate Vincent Impellitteri for president of the City Council.
The American Labor Party, led by Marcantonio, also nominated O'Dwyer.
Republican nomination.
Candidates.
Declined.
Morris was meant to be on the Republican slate, but he refused the nomination and attacked Goldstein as a "discarded Tammany candidate for mayor". La Guardia asked Morris to run and he announced his candidacy as the nominee of the No Deal Party on August 5.
Liberal nomination.
Campaign.
The Liberal Party of New York wanted Wendell Willkie to run for mayor and met with him in May 1944. He was interested in the idea, but died in October. The Liberals attempted to negotiate with the Democrats, but O'Dwyer had ties to the ALP. Morris, while running as a Republican, sought the party's support and the Liberals were favorable to Joseph McGoldrick. McGoldrick withdrew from the race and suggested Goldstein, who was approved.
General election.
Endorsements.
 ;templatestyles src="Endorsements box/styles.css"/ ;Jonah J. Goldstein
Newspapers
Organizations
 ;templatestyles src="Endorsements box/styles.css"/ ;Newbold Morris
Newspapers
 ;templatestyles src="Endorsements box/styles.css"/ ;William O'Dwyer
Federal officials
Organizations
Notable individuals
 ;templatestyles src="Endorsements box/styles.css"/ ;Declined to endorse
Notable individuals
Results.
! scope="col" colspan="2" style="width: 130px"|Party
! scope="col" style="width: 17em"|Candidate
! scope="col" style="width: 5em"|Votes
! scope="col" style="width: 3.5em"|%
! scope="col" style="width: 3.5em"| ;templatestyles src="Template:Tooltip/styles.css" / ;±%
! colspan="3" style="text-align:right;" | Total votes
References.
 ;templatestyles src="Reflist/styles.css" / ;