Rewrite the paragraph to be logical.
The foreigners dominated Indian Ocean,. As the Mappilas dominated the coastal trade and the trade to Pegu.
The foreigners dominated Indian Ocean, whereas as the Mappilas dominated the coastal trade and the trade to Pegu.