Complex sentence: In the 1970s, the Tanzanian government resettled villagers into "ujamaa" villages that were near the railway, and the villages were tasked with providing security for the railway, against foreign sabotage.
Split into simpler sentences: In the 1970s, the Tanzanian government resettled villagers into "ujamaa" villages that were near the railway. Initially the villages were tasked with providing security for the railway, against foreign sabotage.