They did not pose a threat to the US proper, but they did pose a threat to US shipping, and to the shipping of other seafaring nations. They were capturing ships, stealing their cargoes, and selling the crews and passengers into slavery in North Africa.