The military conquest of the Aztecs was completed by 1521. Cortés, as governor of the province of New Spain, then began dividing up the most valuable resource, the indigenous population, through the institution of the encomienda. The encomienda had first appeared in fifteenth-century Spain as part of the reconquest of the south of the country from the Moors, Arabs who had settled during and after the eighth century. In the New World, it took on a much more pernicious form: it was a grant of indigenous peoples to a Spaniard, known as the encomendero.