Lin Wei, a daughter of a scholarly family, was exiled to the frontier due to her family's conviction. Faced with barren land and harsh climate, she used ancestral agricultural books to improve crops, teach refugees to reclaim wasteland, and resisted landlords' seizure of fertile land. Eventually, she turned wasteland on the frontier into granaries and was pardoned by the court.