Martinez is definitely of Spanish origin, and it's quite a common name in Spain today, especially northern areas like La Riocha. Like all names ending in -ez it means "son of",so originally it derives from the common name Martin, whicb is found all over Europe. You can find more information here, as well as contact details if you want to ask more questions about the Martinez family.
Martinez came mainly from Spain but it its related to also come from Guatemala, and Mexico
Martiniz is a Spanish last name so it comes from the Spanish countries. Good luck and have a good night.
From Guatemalan