Sambor and Racibor were driven out from their lands and sought refuge and alliance first with Piast relatives in Greater Poland, later with the Teutonic Knights, a Christian military order waging a crusade against pagan Prussians.