Why was the battle of El Alamein important?

The battle was a significant victory for the British , one from which the Afrika Korps never fully recovered .