It is the equivalent of the English son ending.
Hispanic names ending in ez. The suffix -ez in Spanish family names. This is because it means son of like the suffix -son and -sen in many German and Scandinavian languages. Lets take a look at some examples of common patronymic last names in Spanish.
In Spanish last names ending in -es -ez -is or -oz are often patronymics. A person for example may have two last names one from their mother and one from their father. The trend has continued into the Spanish speaking world of Central and South America.
The es is the Portuguese version and ez is Spanish. 14 Spanish names that end with Z. Fernández is the son of Fernando Ferdinan.
260 Spanish names that end with A. A B C D E F G H I J K L M N O P Q R S T U V W X Y Z. Fernández son of Fernando González son of.
However Spanish patronymic surnames were most often formed by adding suffixes meaning son of such as es as is or os common to Portuguese surnames or ez az is or oz common to Castilian or Spanish surnames to the end of the fathers name. Piesplanos flat feet. The relationship is clearer in the old spelling -es which is sometimes still used as in the Gonzales that coexists with González.
In Portuguese the -ez becomes an -es. The patronymic naming system is a Germanic custom and this idea probably got to Spain through the Visigoths. In fact names ending in ez are usually Germanic in my experience.