In the United States, a
district attorney (
DA),
county attorney,
county prosecutor,
state's attorney, prosecuting attorney,
commonwealth's attorney, or
solicitor is the chief prosecutor or chief law enforcement officer representing a U.S. state in a local government area, typically a county or a group of counties. The exact scope of the office varies by state. Generally, the prosecutor is said to represent the people of the jurisdiction in the state's courts, typically in criminal matters, against defendants. With the exception of three states, district attorneys are elected, unlike similar roles in other common law jurisdictions.