Original: They continued to claim authority in religious matters from their base in Mamluk Egypt upto 1519 when power was formally transferred to the Ottomans and the capital transferred to Istanbul .
Simplified: But they continued to claim authority in religious matters from their base in Egypt .