A solicitor general or solicitor-general, in common law countries, is usually a legal officer who is the chief representative of a regional or national government in courtroom proceedings. In systems that have an attorney-general (or equivalent position), the solicitor general is often the second-ranked law officer of the state and a deputy of the attorney-general. The extent to which a solicitor general actually provides legal advice to or represents the government in court varies from jurisdiction to jurisdiction, and sometimes between individual office holders in the same jurisdiction.