however he had become essential for the castilian king