Pei Xuan is from Jingzhao Prefecture, where he used to be a magistrate. He does not yield to threats and bribes. As such, he earns himself the nickname "Iron Face". Apart from his expertise in law, he is also well versed in swordsmanship and scholarly arts. Pei Xuan is the chief military judge of Liangshan, he oversees the handing out of rewards and punishments and serves as Liangshan's de facto Chief Justice. After the victory over Fang La, he declines the offer and returns to Yinma River with Yang Lin.