The city of Nairobi, where Kibera is located, was founded in 1899 when the Uganda Railway line was built, thereby creating a need for its headquarters and British colonial offices. The colonial administration intended to keep Nairobi as a home for Europeans and temporary migrant workers from Africa and Asia. The migrant workers were brought into Nairobi on short-term contracts, as indentured labor, to work in the service sector, as railway manual labour and to fill lower-level administrative posts in the colonial government.