rang and the Magistrate is a 2012 South Korean historical television drama, starring Lee Joon-gi, Shin Min-ah and Yeon Woo-jin. The period horror-romance is based on the folklore of Arang, who died unjustly and returns as a ghost in order to reveal the circumstances surrounding her death. It aired on MBC from August 15 to October 18, 2012 on Wednesdays and Thursdays at 21:55 for 20 episodes.

Overview from themoviedb.org