Spain founded the Spanish Legion; an army unit made up of foreign soldiers.

The Spanish Legion was founded to provide professional troops to Spain’s colonies, as local units of conscripts were not very effective.

Source