Complex sentence: In 1840, when the Bardheere Jama’a looking for an outlet to the sea attacked Barawa, the town was burned and the people appealed to the sultan of Zanzibar for protection.
Split into simpler sentences: In 1840, when the Bardheere Jama’a, while looking for an outlet to the sea, attacked Barawa. The town was burned and the people appealed to the sultan of Zanzibar for protection.