I once joined a crusade with the crusade target captured. Since nobody except the pope had actually fought any battles yet, the pope forced a win and got all of Andalusia as a new papal state. I don't know if this has changed, but it used to be that republics and theocracies could not usurp king level titles, so he didn't have the title of Andalusia.