Because we punched the bully in the nose, hard, they never bothered us again.
But my comment was specific in that we have not had to deal with since 1967 in America, whereas, the Barbary Wars were fought overseas and not on our soil.
One of the opening shots in the present war on terror was the assassination of Robert Kennedy in 1968 by Sirhan Sirhan. It took years for that killing to be put in proper context.
My state, DE has its boundaries fixed by Mason and Dixon and their lines.