The moral of the ugly duckling's story is that we all have our beauty. So has the swan. Sometimes we may feel different within some group, in the end, we realize that we have our own beauty.
he may have felt inferior, excluded, but he was not aware that he was actually a swan, and he had this desire to be like other ducklings. In the end, "the ugly duckling" turned ou to be a beautiful swan. For the ducklings, he was too different and did not fit into that group. It may have thought he was ugly and He became as beautiful as the ducklings, with their particular beauty.