The attorney general of New York, also known as the New York attorney general (NYAG), is the chief legal officer of the U.S. state of New York and head of the Department of Law of the state government. The office has existed in various forms since 1626, originally established under the Dutch colonial government of New Netherland.