Robin Hood was the name of a character in Human mythology, who was the leader of the Merry Men in an area of England known as Sherwood Forest. According to legend he stole from the rich to feed the poor while always staying one step ahead of his archenemy the Sheriff of Nottingham. He is perhaps most famous for his courageous attempt to rescue his beloved Maid Marian from Nottingham Castle where she was being forced to marry Sir Guy of Gisbourne.
In 2267, when James T. Kirk and Spock arrive on Earth in the United States of America in 1930, Kirk steals clothes from a fire escape to aid in their disguise, jokingly stating that they'll "steal from the rich and give back to the poor - later." (TOS: "The City on the Edge of Forever")
In 2367, the entity known as Q transported the senior officers of the USS Enterprise-D into a recreation of Sherwood Forest and the story of Robin Hood in an attempt to teach Captain Picard a lesson about love. During the reenactment each of the officers played the part of one of the Merry Men. The role of Robin Hood was played by Picard who had to choose whether to let Maid Marian (Vash) die or risk his crew's lives trying to rescue her. (TNG: "Qpid")