"The Daughter of the Commandant" (better known as "The Captain's Daughter") is a historical novel by the Russian writer Alexander Pushkin, and is considered to be his finest prose work. The novel is a romanticized account of Pugachev's Rebellion in 1773-1774.
The 17-year-old Pyotr Andreyich is sent by his father to military service in a remote Russian outpost, where he leans honor and love while being caught up in a violent uprising of tribal groups against the imperial government. (Summary by Wikipedia (alt.) and Kevin Davidson)