California entered the United States as the 31st state, admitted as a free state under the Compromise of 1850 just two years after the Gold Rush began.