after several triumphs he proclaimed its independence from the emirate of córdoba