According to Egyptian texts, Ramesses placed his enemies in garrisons (as seen in this photo of helmeted Philistine prisoners), who eventually freed themselves and proceeded to occupy the Levantine coast.