The secretary of state of Alabama is one of the constitutional officers of the U.S. state of Alabama. The office actually predates the statehood of Alabama, dating back to the Alabama Territory. From 1819 to 1901, the secretary of state served a two-year term until the State Constitution was changed to set the term to four years. Up until 1868 the secretary of state was elected by the Alabama Legislature, but is now popularly elected. The terms and over 1,000 duties of the office are defined by Sections 114, 118, 132, and 134 of the Alabama Constitution and throughout the Code of Alabama.