Martinez is a city and the county seat of Contra Costa County, California, United States. The population was 35,824 at the 2010 census. The downtown is notable for its large number of preserved old buildings and antique shops.