The following table indicates the party of elected officials in the U.S. City of New York, New York since the modern five-borough city was created in 1898:
The table also indicates the historical party composition in the:
| Year | Citywide offices | Borough presidents | City Council | |||||
|---|---|---|---|---|---|---|---|---|
| Mayor | President of the Board of Aldermen | President of the City Council | Public Advocate | Comptroller | Speaker | Composition | ||
| 1898 | Robert Anderson Van Wyck (D) | Randolph Guggenheimer (D) | no such office | no such office | Bird Sim Coler (D) | 4D, 1R | no such office | Council: 15T, 10D, 3R Aldermen: 46D, 10R, 3CU |
| 1899 | ||||||||
| 1900 | 43D, 16R | |||||||
| 1901 | ||||||||
| 1902 | Seth Low (Fus) | Charles V. Fornes (D) | Edward M. Grout (D) | 3D, 1R, 1Fus | 38R, 35D | |||
| 1903 | ||||||||
| 1904 | George B. McClellan Jr. (D) | 4D, 1R | 48D, 25R | |||||
| 1905 | ||||||||
| 1906 | Herman A. Metz (D) | Patrick McGowan (D) | 3D, 1R, 1MOL | 43R, 24D, 6MOL | ||||
| 1907 | ||||||||
| 1908 | 46D, 26R, 1Ind | |||||||
| 1909 | ||||||||
| 1910 | William Jay Gaynor (D) | John Purroy Mitchel (Fus) | William A. Prendergast (R) | 4D, 1R | 41D, 32R | |||
| 1911 | ||||||||
| 1912 | Ardolph L. Kline (R) | 39R, 34D | ||||||
| 1913 | Ardolph Loges Kline (R) | |||||||
| 1914 | John Purroy Mitchel (Fus) | George McAneny (D) | 3R, 2D | 41R, 31D, 1Prog | ||||
| 1915 | ||||||||
| 1916 | 54D, 19R | |||||||
| 1917 | Frank R. Dowling (D) | |||||||
| 1918 | John Francis Hylan (D) | Al Smith (D) | Charles L. Craig (D) | 5D | 44D, 16R, 7Soc | |||
| 1919 | Robert L. Moran (D) | |||||||
| 1920 | Fiorello La Guardia (R) | 4D, 1R | 37D, 26R, 4Soc | |||||
| 1921 | ||||||||
| 1922 | George Murray Hulbert (D) | 5D | 53D, 12R | |||||
| 1923 | 54D, 11R [1] | |||||||
| 1924 | [ ? ] | |||||||
| 1925 | ||||||||
| 1926 | Jimmy Walker (D) | Joseph V. McKee (D) | Charles W. Berry (D) | [ ? ] | ||||
| 1927 | ||||||||
| 1928 | 66D, 6R | |||||||
| 1929 | 4D, 1R | |||||||
| 1930 | 61D, 4R | |||||||
| 1931 | ||||||||
| 1932 | Joseph V. McKee (D) | 64D, 1R | ||||||
| 1933 | John P. O'Brien (D) | Charles W. Berry (D)/ George McAneny (D) | ||||||
| 1934 | Fiorello La Guardia (R) | Bernard S. Deutsch (Fus) | Joseph McGoldrick (R) | 3D, 2R | 48D, 17R | |||
| 1935 | Frank J. Taylor (D) | |||||||
| 1936 | 62D, 3R | |||||||
| 1937 | William F. Brunner (D) | |||||||
| 1938 | office abolished | Newbold Morris (R) | Joseph McGoldrick (R) | 3R, 2D | 14D, 5AL, 3R, 3Fus, 1I | |||
| 1939 | ||||||||
| 1940 | 14D, 2AL, 2Fus, 2R, 1I | |||||||
| 1941 | ||||||||
| 1942 | 3D, 2R | 17D, 3AL, 2Fus, 2R, 1Com, 1I | ||||||
| 1943 | ||||||||
| 1944 | 10D, 3R, 2Com, 2AL | |||||||
| 1945 | ||||||||
| 1946 | William O'Dwyer (D) | Vincent R. Impellitteri (D) | Lazarus Joseph (D) | 5D | 14D, 3R, 1AL, 2C, 1Lib, 1I | |||
| 1947 | 12D, 5R, 2AL, 2Com, 1I, 1L | |||||||
| 1948 | ||||||||
| 1949 | ||||||||
| 1950 | 24D, 1R | |||||||
| 1951 | Vincent R. Impellitteri (D) | Rudolph Halley (Lib) | ||||||
| 1952 | 4D, 1R | |||||||
| 1953 | ||||||||
| 1954 | Robert F. Wagner Jr. (D) | Abe Stark (D) | Lawrence E. Gerosa(D) | 23D, 2R | ||||
| 1955 | ||||||||
| 1956 | ||||||||
| 1957 | ||||||||
| 1958 | 5D | 24D, 1R | ||||||
| 1959 | ||||||||
| 1960 | ||||||||
| 1961 | ||||||||
| 1962 | Paul R. Screvane (D) | Abraham Beame (D) | 4D, 1R | 23D, 2R | ||||
| 1963 | ||||||||
| 1964 | 28D, 7R | |||||||
| 1965 | ||||||||
| 1966 | John Lindsay (R) | Frank D. O'Connor (D) | Mario Procaccino (D) | 30D, 7R | ||||
| 1967 | ||||||||
| 1968 | ||||||||
| 1969 | Francis X. Smith (D) | |||||||
| 1970 | Sanford Garelik (R) | Abraham Beame (D) | 30D, 4Lib, 3R | |||||
| 1971 | John Lindsay (D) | |||||||
| 1972 | ||||||||
| 1973 | ||||||||
| 1974 | Abraham Beame (D) | Paul O'Dwyer (D) | Harrison J. Goldin (D) | 37D, 5R, 1Lib | ||||
| 1975 | ||||||||
| 1976 | ||||||||
| 1977 | ||||||||
| 1978 | Ed Koch (D) | Carol Bellamy (D) | 5D | 37D, 4R, 1Lib, 1Cons | ||||
| 1979 | ||||||||
| 1980 | ||||||||
| 1981 | ||||||||
| 1982 | 40D, 3R, 1Cons, 1Lib | |||||||
| 1983 | 35D | |||||||
| 1984 | ||||||||
| 1985 | ||||||||
| 1986 | Andrew Stein (D) | 34D, 1R | ||||||
| 1987 | ||||||||
| 1988 | ||||||||
| 1989 | ||||||||
| 1990 | David Dinkins (D) | Elizabeth Holtzman (D) | 4D, 1R | Peter Vallone Sr. (D) | ||||
| 1991 | ||||||||
| 1992 | 46D, 5R | |||||||
| 1993 | ||||||||
| 1994 | Rudy Giuliani (R) | office abolished | Mark Green (D) | Alan Hevesi (D) | 44D, 7R | |||
| 1995 | ||||||||
| 1996 | ||||||||
| 1997 | ||||||||
| 1998 | ||||||||
| 1999 | ||||||||
| 2000 | ||||||||
| 2001 | ||||||||
| 2002 | Michael Bloomberg (R) | Betsy Gotbaum (D) | William C. Thompson (D) | 4D, 1C | Gifford Miller (D) | 47D, 4R | ||
| 2003 | ||||||||
| 2004 | 47D, 3R, 1WF | |||||||
| 2005 | ||||||||
| 2006 | Christine Quinn (D) | |||||||
| 2007 | Michael Bloomberg (I) | |||||||
| 2008 | ||||||||
| 2009 | 48D, 2R, 1WF | |||||||
| 47D, 3R, 1WF | ||||||||
| 2010 | Bill de Blasio (D) | John Liu (D) | 45D, 5R, 1WF | |||||
| 2011 | ||||||||
| 2012 | 46D, 4R, 1WF | |||||||
| 2013 | ||||||||
| 2014 | Bill de Blasio (D) | Letitia James (D) | Scott Stringer (D) | 4D, 1R | Melissa Mark-Viverito (D) | 48D, 3R | ||
| 2015 | ||||||||
| 2016 | ||||||||
| 2017 | ||||||||
| 2018 | Corey Johnson (D) | |||||||
| 2019 | Jumaane Williams (D) | |||||||
| 2020 | ||||||||
| 2021 | ||||||||
| 2022 | Eric Adams (D) | Brad Lander (D) | Adrienne Adams (D) | 46D, 5R | ||||
| 2023 | 45D, 6R | |||||||
| 2024 | ||||||||
| 2025 | ||||||||
| 2026 | Zohran Mamdani (D) | Mark Levine (D) | TBD (D) | 46D, 5R | ||||