Attacks on European shipping were made by corsairs, primarily from Algiers, but also from Tunis and Tripoli, yet after a long period of declining raids the growing power of the European states finally forced its termination. Under the Ottoman Empire, the boundaries of Tunisia contracted; it lost territory to the west (Constantine) and to the east (Tripoli).