Ex-France youth international Sofiane Feghouli has been cleared by Fifa to play for Algeria.
The 21-year-old, who plays for Spanish side Valencia, applied to Fifa last month to enable him play for the Desert Foxes.
The midfielder has now been cleared by the world governing body to play for the country of his parents.
"Fifa has officially cleared Sofiane Feghouli to play for Algeria," Algeria FA said in a statement.
"Feghouli, the player of Valencia, is now officially qualified to play for Algeria from today."
The midfielder is likely to be handed his first call-up to the Desert Foxes squad for next month's friendlies against Tunisia and Cameroon.
Under Fifa rules, players who have represented one country at junior level can play for another at senior level if they meet the qualifying stipulations.
Feghouli played for the France U18 and U21 sides between 2006 and 2010.
He was even named in the preliminary squad ahead of the French senior team's friendly against Uruguay in 2008.
But after meeting Algeria FA football officials in May the Valencia midfielder decided to switch allegiance to play for the country of his parents.