When Did Illegal Immigration Start?

The border for the U.S.A. was created in 1848 making it illegal to cross over. But it is not documented when we actually started enforcing the law very strict, like now.