Algeria have appointed Lucas Alcaraz as their fourth fulltime coach in the last 13 months.
The Spaniard was sacked on Monday as the coach Granada who are currently bottom of the Spanish La Liga.
The 50-year-old replaces Belgian Georges Leekens who quit after the Algeria were eliminated from the Africa Cup of Nations at the group stage.
Christian Gourcuff left as coach in April 2016 to be replaced by Milovan Rajevac who quit after just two games.
The move came as a surprise to many in Algeria as another Spaniard Joaquin Caparros had been expected to be given the job.
Former Middlesbrough manager Aitor Karanka had also been linked to the position.