In 1972, Milk moved from New York City to the Castro District of San Francisco amid a migration of gay and bisexual men. He took advantage of the growing political and economic power of the neighborhood to promote his interests and unsuccessfully ran three times for political office. Milk's theatrical campaigns earned him increasing popularity, and in 1977 he won a seat as a city supervisor. His election was made possible by a key component of a shift in San Francisco politics.