Matron Tang, also referred to as Nanny Tang or Madam Tang, is the supervisor of Ciyou Courtyard, the residence of Pei Huaian. She was specially assigned by Old Madam Pei from her own staff to help manage the people and affairs within the courtyard. She is described as having a gentle and kind demeanor, as evidenced by her warm greeting to Pei Huaian upon his return. Matron Tang plays a crucial role in the narrative when she discovers that Pei Huaian has experienced his first wet dream. After a maid retrieves stained undergarments from under the young master's bed, Matron Tang recognizes the signs of his physical maturation and discreetly reports this to Old Madam Pei. Her report ultimately convinces the old madam to relent and consent to Pei Huaian's marriage to Third Maiden Shen, making her an important catalyst in the plot's resolution.