Phelan studied law at the
University of California, Berkeley and then became a banker. He was elected Mayor of San Francisco in
1896, serving from 1897 until 1902, in three 2-year terms. He pushed for the reform City Charter of 1898 in San Francisco. He served as the first president of the
League of California Cities, which was created in 1898. He was the Democratic candidate for U.S. Senate in
1900, but lost to Republican
Thomas R. Bard. Phelan was elected as a Senator of the United States and served from 1915 to 1921. During this time, Phelan established himself as a leader in what fellow anti-Japanese agitator
V. S. McClatchy described as the "holy cause" of
Japanese exclusion. He remained active in the anti-Japanese movement after leaving office, securing then-presidential candidate
Woodrow Wilson's support for restricting Japanese immigration in 1912 and helping to push through California's discriminatory
alien land law in 1913. Phelan was also an advocate for excluding Chinese from the United States. He promoted the
Chinese Exclusion Act of 1882 and wrote an article "Why the Chinese Should Be Excluded"(1901) in the
North American Review, to increase support for the extension of these laws. In a debate with Imperial Chinese Consul Ho Yow, Phelan mentioned that the Chinese were an undesirable population because they had strong ties to their native country and were incapable of assimilating to the American society. This debate occurred just nineteen months after the
outbreak of plague in San Francisco's Chinatown. Phelan mentioned that the Chinese had different mindsets and that after twenty years, they remained unchanged in their values. He concluded that American progress would be stunted if the United States continued to allow Chinese immigrants to remain in the country, and that the Chinese workers were taking work away from white workers because they worked for so much lower wages and an accustomed lower standard of living, allowing their labor to be exploited unfairly, driving down conditions of labor and standards of living generally. ==Water and land rights==