The Ottoman forces were forced out to Laghouat, and then to Wadi Tafna, where they stayed there under a treaty signed in 1647. According to the treaty, the Ottoman forces were not allowed to go any further than Wadi Tafna. As a result, Oran, which was Moroccan territory then, faced coup attempts.