What was the main reason for the Chinese Exclusion Act of 1882?

A) Preventing the depletion of natural resources
B) Discouraging anti-American activism
C) Reducing competition for U.S. jobs
D) Addressing a lack of urban housing