In 1651, Emir Muhammed Bin Sharif entered Tlemcen, which was under Ottoman control then, before returning to Oujda. Despite the border disputes between Moroccans and Ottomans, Wadi Tafna remained a borderline between Moroccan and Ottoman territories.