qnli question: What city did William Eaton capture to end the first Barbary War? sentence: The U.S. paid protection money until 1801, when President Thomas Jefferson refused to pay and sent in the Navy to challenge the Barbary States, the First Barbary War followed.