Original: Prior to his election as mayor , Villaraigosa was the California State Assemblyman for the 45th District , the Speaker of the California State Assembly , and the Los Angeles City Councilman representing the 14th District .
Simplified: He was elected on May 17 , 2005 , defeating the mayor in office , James Hahn .