Hahn served twelve years as city attorney before defeating former State Assembly Speaker Antonio Villaraigosa, a fellow Democrat, by 9% in the 2001 mayoral run-off election.