The correct answer is "They felt that foreigners threatened their independence".
They felt their independence was threatened in the sense that they wanted to protect their own culture and religion. Both nations applied severe isolationist policies that secluded their territory and prohibited foreigners entrance for a very extended period of time in history.
Hope this helps!