This refers to people who were not Israelites.
When the foreigners married the Israelites, their children were neither foreigners nor Israelites. They were a mixed race. These children were called Samaritans.