Lafayette (formerly, La Fayette) is a city in Contra Costa County, California, United States. As of 2011, the city's population was estimated to be 24,285. It was named after the Marquis de Lafayette, a French military hero of the American Revolutionary War.