A leprechaun is a type of fairy in Irish folklore. They are usually depicted as little bearded men, wearing a coat and hat, who partake in mischief. They are solitary creatures who spend their time making and mending shoes and have a hidden pot of gold at the end of the rainbow. If captured by a human, they often grant three wishes in exchange for their freedom. Like other Irish fairies, leprechauns may be derived from the Tuatha Dé Danann. Leprechaun-like creatures rarely appear in Irish mythology and only became prominent in later folklore.

The earliest known reference to the leprechaun appears in the medieval tale known as the Echtra Fergus mac Léti (Adventure of Fergus son of Léti). The text contains an episode in which Fergus mac Léti, King of Ulster, falls asleep on the beach and wakes to find himself being dragged into the sea by three lúchorpáin. He captures his abductors, who grant him three wishes in exchange for release.

More Info: en.m.wikipedia.org