Historical roots of the migration triangle