Borrowed from Portuguese mandarim, mandari, from Malay menteri, manteri, from Sanskrit मन्त्रिन् (mantrin, “minister, councillor”), from मन्त्र (mantra, “counsel, maxim, mantra”) + -इन् (-in, an agent suffix).
Practice speaking and memorizing "mandarín" and many other words and sentences in Spanish.