Hayreddin Barbarossa
In 1516, Mostaganem was seized by Hayreddin Barbarossa from his base of Algiers. He then strengthened its defences, and the city became a rival of Oran. From 1519, Barbarossa placed himself under the protection of the Ottomans, thereby transforming Mostaganem into an Ottoman dominion.