During Japan's Heian period (794-1185), Murasaki Shikibu worked as a lady-in-waiting (or court lady) in the imperial court. A lady-in-waiting was a high-ranking post only given to noblewomen who were close to the court. These ladies, who frequently came from aristocratic families, were chosen to work at the imperial court based on their connections and social standing.