Borrowed from French calife, from Medieval Latin calipha, from Arabic خَلِيفَة (ḵalīfa, “vicar, successor”). Displaced patrimonial instance halifa as borrowed directly from Andalusian Arabic خَلِيْفَة (ẖalífah).
Practice speaking and memorizing "califa" and many other words and sentences in Spanish.