Martin became popular throughout Christian Europe after Saint Martin of Tours, a 4th-century bishop in Roman Gaul, now France, known for his acts of kindness and later canonised. The name is recorded in Iberian documents in Latin forms such as Marti and Martino in 1019, and as Martin in Old Spanish in 1225.
Martinez is the most common surname in the Spanish regions of Navarre, La Rioja, Cuenca and Murcia, and the second most common Spanish surname in America, after Garcia. Among Mozarabs, the name was Arabised to Mardanish, as in Ibn Mardanish.
In the United States, Martinez is the tenth most common surname overall. According to the data on the Hispanic hub on this site, 92.1% of bearers identify as Hispanic or Latino. The Portuguese equivalent is Martins, from Martim, also from Latin Martinus.