The Battle of Oued Djer occurred in 1517 after the locals of Ténès called upon Arudj Reis to remove its ruler who was a Spanish agent and had occupied the city with the help of the Spanish.