The origins of the vibrant civilization on the Swahili coast have long been debated. New DNA analysis sheds light on conflicting theories.