The story is set in 19th-century St. Petersburg, Russia. The beautiful and intelligent Nastasya lost both her parents at a young age and was long kept as a mistress by the despicable landowner Totsky. To fulfill his ambition of marrying General Yepanchin's eldest daughter, Totsky uses a generous dowry as bait in an attempt to "transfer" Nastasya to the general's secretary, Ganya.