The demise of lions from northern regions (above the Sahara) followed a sequence starting in Europe in ancient historical times, central Asia and Egypt and along the North African coast, then a slow shrinkage from the eastern Mediterranean countries.
Small populations of Asiatic lion (Panthera leo persica) clung on in Syria, Iraq, Iran and Pakistan to the end of the 19th Century and some micro populations continued in the latter three countries into the 20th century, but have only remained in the Gir forest in India since that time.
The Barbary lion (Panthera leo leo) disappeared from coastal Morocco in regions near the larger human population centres in the 19th century, but survived in remote areas of the High Atlas of Morocco and the Saharan Atlas (north central Algeria) and Aures mountains in northeastern Algeria into the second half of the 20th century.
Bartosiewicz, L. (2009) A lion’s share of attention: Archaeoogy and the Historical Record. Acta Archaeologica Academiae Scientiarum Hungaricae. DOI: 10.1556/AArch.59.2008.2.2
Black SA, Fellous A, Yamaguchi N, Roberts DL (2013) Examining the Extinction of the Barbary Lion and Its Implications for Felid Conservation. PLoS ONE 8(4): e60174. doi:10.1371/journal.pone.0060174