The city attorney of San Francisco is an elected position in the City and County of San Francisco, California. While city-county consolidation resulted in the unified government having both a city attorney and a district attorney, the two positions are separate and serve different purposes.