Robin Hood was the name of a character in Human mythology. Living in 12th century England, he was the leader of the Merry Men and resided with them in Sherwood Forest. He had a romantic relationship with Maid Marian. Robin Hood was most famous for robbing the rich to feed the poor and for his rescue of Maid Marian from Nottingham Castle. As a result of his principles and actions, he was viewed by the High Sheriff of Nottingham and his second-in-command Sir Guy of Gisbourne as being guilty of outlawry and treason and, as a consequence, he had an adversial relationship with them.
When James T. Kirk and Spock arrived on Earth in the United States of America of 1930 via the Guardian of Forever, Kirk stole clothes from a fire escape to aid in their disguise, jokingly stating that they would "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")