A county attorney in many areas of the United States is the chief legal officer for a county or local judicial district. It is usually an elected position. The role of the county attorney can be similar to or complementary to that of a local state's attorney, commonwealth's attorney or district attorney.