One reason why avoiding conflict with France and Britain was so difficult during Thomas Jefferson and James Madison's presidencies was because "Both the British and the French would attack neutral trading ships," since the US had to protect its own shipping in order to remain sovereign.