Marin City is an unincorporated community and census-designated place (CDP) in Marin County, California, United States. As of the 2020 census, it had a population of 2,993, up from 2,666 in 2010. It is located northwest of downtown Sausalito, south-southeast of San Rafael, and about north of San Francisco from the Golden Gate Bridge, at an elevation of . Marin City was developed for housing starting in 1942, to accommodate wartime shipyard workers and other migrants to California. Among those were African Americans from the South in the Great Migration, which continued until 1970. After the war, the area became predominantly African-American, as white residents were able to move freely to private housing elsewhere in Marin County. Since the 1980s, additional development has changed the makeup of the population while providing more local jobs. In 2018, Marin City's socioeconomic and racial makeup (median household income of $40,000, and almost 40 percent Black) contrasts with the mostly wealthy and White population in Marin County overall (greater than $80,000 median income, less than four percent Black). History Prior to World War II, this area was occupied by a dairy farm and a handful of families. Soon after war was declared on December 8, 1941, Marin City was rapidly built during 1942 in order to house 6,000 of the 20,000 workers who migrated from all over the United States, attracted by the defense jobs at Marinship, the Sausalito waterfront shipyard. A total of 93 liberty ships and tankers were built and launched from Marinship in fewer than three years. Many of the African-American shipyard laborers who had migrated to the Bay Area from the South during the second phase of the Great Migration continued to live in Marin City after the war, either by choice or because many black families were restricted by local zoning from living in or buying homes in the towns surrounding Marin City. They became the core of the community after many of the other workers moved to other areas at the end of the war. During the war, African Americans comprised about 10 percent of Marin City's population. By the 1970s, African Americans comprised more than 75 percent of the population of Marin City, most of whom were descendants of the Marinship workers. During the 1980s and 1990s there was considerable residential and commercial development in the community, including several new housing developments, apartment complexes, and condo developments.