Selim I established Ottoman rule in Egypt by defeating and annexing the Mamluk Sultanate of Egypt and created a naval presence on the Red Sea.