One day the emperor learned that two weavers had arrived and were looking for work.  They said that they could make the best and most beautiful cloth in all the world; however, the cloth wasinvisible to people who were unfit for their jobs and foolish people could not see the cloth.

The emperor knew he wanted it for two reasons.  First, he deserved to have clothes made from the most beautiful cloth.  Second, he would be able to tell whether the people who worked for him were fit for their jobs.  So he hired the weavers  to make the cloth and to sew him clothes made from it.