It is the task of the holder of the office of Nottingham's Sheriff to capture outlaws such as Robin Hood, either to ensure the safety of trade routes through Sherwood Forest or to keep them from poaching the King's deer.
The legends are generally set far from Nottingham; this fits the historical position of High Sheriff of Nottinghamshire, Derbyshire and the Royal Forests (from 1068 until 1568).
In the film Robin Hood: Prince of Thieves, the Sheriff's influence outside the region of Nottingham has grown so great, he attempts to take control of the throne.
In some versions, the Sheriff is a cowardly schemer while his assistant, Sir Guy of Gisborne, is a more competent and determined physical threat to Robin.
If, as in many versions of the Robin Hood legend, the action of the story is placed during the absence of King Richard I of England in 1190–1193 during the Third Crusade and his subsequent holding to ransom in Austria, the character could be identified with the little-known William de Wendenal, who was High Sheriff from 1191 to 1194.