Spanish postal codes were introduced on 1 July 1984,[1] when the Sociedad Estatal de Correos y Telégrafos introduced automated mail sorting. They consist of five numerical digits,[2] where the first two digits, ranging 01 to 52, correspond either to one of the 50 provinces of Spain or to one of the two autonomous cities on the African coast.