When was the Missouri compromise?

Under the Missouri Compromise of 1820 Missouri was admitted as a slave state and Maine as a free state.