It gave China and Vietnam freedom against european slavers.