How did people get their property in the frontier of New Mexico? 1-2 sentences

People obtained property in the frontier of New Mexico through various means, such as homesteading, purchasing land from the Mexican government or private landowners, or receiving land grants from the Spanish or Mexican governments.