The official language used during the Delhi Sultanate was Persian, also referred to as Farsi. Although the rulers were of Turkish descent, they used Persian in administration, in matters related to the government, and in writing literature. It remained the language used in administration up to the Mughal period, and Hindavi was used in local dialects.