Toward the end of Northern Song Dynasty, the government was deeply corrupted, and the oppressed citizens finally rebelled. A hundred and eight men and women fought against the government and took their last stand in a place called Liangshan. The Water Margin was adapted from Shi Nai'an's classical novel of the same title.