By the mid twentieth century, many foreigners settled in Nairobi from other parts of the British Empire, primarily India and parts of (present-day) Pakistan. These immigrants were workers who arrived to construct the Kampala – Mombasa railway, settling in Nairobi after its completion, and also merchants from Gujarat. Nairobi also has established communities from Somalia and Sudan.