Instead of primer apellido (first surname) and segundo apellido (second surname), common in other countries, legally, the following expressions are used: apellido paterno (paternal surname) and apellido materno (maternal surname).
In Ecuador, a couple can choose the order of their children's surnames.