Which civilization had the biggest influence on Greek and Roman societies due to its location near the Mediterranean Sea

The civilization that had the biggest influence on Greek and Roman societies due to its location near the Mediterranean Sea was the ancient Egyptian civilization.