Missouri Compromise

The Missouri Compromise was designed to maintain a delicate balance of power in Congress between slave states and free states. But how did it come about, what did it mean and how did it contribute to the US Civil War?