Egypt is located in northern Africa, bordering the Mediterranean Sea, between Libya and the Gaza Strip. It has a population of over 78 million people, most of whom live in the fertile Nile River valley and delta. Egypt has over 6,000 years of recorded history, dating back to ancient Egypt which was one of the earliest civilizations and influenced many later cultures. In modern history, Egypt was invaded by Ottoman and British forces and became a British protectorate until gaining independence in 1922.