Millions of immigrants came to the US in the late 19th and early 20th centuries from Europe, Asia, and the Caribbean to escape difficult conditions and seek opportunities. They faced hard journeys and were often detained in poor conditions upon arrival. While some ethnic communities supported each other, nativist groups opposed immigration and lobbied for restrictions, leading to policies like the Chinese Exclusion Act of 1882.