The country code for Spain is +34. When calling Spain from abroad, dial +34 followed by the Spanish phone number. For example, from the U.S.: +34 [Spanish number].