Answer
Alfonso X debased the coinage to finance his claim to the crown of Germany. This was a common practice in the Middle Ages, as rulers often needed to raise money quickly in order to fund military campaigns or other expensive projects. By debasing the coinage, rulers could essentially create more money out of thin air, since the new coins would be worth less than the old ones.