The Australian Electoral Commission, or the AEC, is the Australian federal government agency in charge of federal elections and referendums. State and local government elections are run by the Electoral Commission in each state and territory.