Conflicts with European countries caused them to sign the Monroe Doctrine, which specified that the United States would not intervene in the internal affairs of European countries. They formed friendly ties with British Canada and the Spanish province of Florida. These feelings of patriotism and solidarity arose as a result.
Hope this helps; have a great day!