Why was Mexico separated from the rest of US?

Mexico was never a part of the United States. It was a Spanish colony from the 16th century until the early 19th century. Mexico gained its independence from Spain in 1821.
Copyright Wanderlust World © https://www.ynyoo.com