Formed in the year 1192 in Acre, in the Levant, the medieval order played an important role in Outremer (the general name for the Crusader states), controlling the port tolls of Acre. After Christian forces were defeated in the Middle East, the order moved to Transylvania in 1211 to help defend the southeastern borders of the Kingdom of Hungary against the Cumans. The Knights were expelled by force of arms by King Andrew II of Hungary in 1225, after attempting to place themselves under papal instead of the original Hungarian sovereignty and thus to become independent.