Both countries, as well as many others, are seeking to curb dependence on China for the valuable minerals.