Complex sentence: Under King Agadja (ruled 1708-1732) the kingdom conquered Allada, where the ruling family originated, thereby gaining direct contact with European slave traders on the coast.
Split into simpler sentences: Under King Agadja (ruled 1708-1732), the kingdom conquered Allada, where the ruling family originated. They thus gained direct contact with European slave traders on the coast.