The attorney general of Virginia is an elected constitutional position that holds an executive office in the government of Virginia. Attorneys general are elected for a four-year term in the year following a presidential election.