Between 1900 and 1940, the colonial government passed a number of laws – such as the 1922 Vagrancy Act – to segregate people, evict, arrest, expel and limit the movement of the natives and indentured workers. Within Nairobi, Africans could live in segregated "native reserves" at the edge of the city. Permits to live in Nairobi were necessary, and these permits separated living areas of non-Europeans by ethnic group. One such group were African soldiers who served the military interests of the British colonial army, and their assigned area developed into a slum, now known as Kibera.