After the restoration of Portuguese sovereignty in 1640, the Army was reorganized by King John IV of Portugal. The "terços" remained the basic units of the Portuguese infantry. Two types of "terços" were organized: the paid "terços" (first line permanent units) and the auxiliary "terços" (second line militia units). Portugal won the Restoration War with these "terços".