The nursery rhyme "Sing a Song of Six Pence" originated as a coded message to recruit members for pirate ships.
Pirates (or corsairs, privateers whose activities were sanctioned by letters of marque from a sovereign) did not spend all their time at sea: they cruised the waters in areas such as the Mediterranean, the Spanish Main, or the Atlantic coast of North America, looking for prizes, and they returned to port when the need for supplies or repairs demanded it. Upon reaching port, the ship's captain paid off the crew (primarily by dividing the spoils of whatever they had captured), and the crew members then dispersed ashore (usually to spend all their pay on alcohol and prostitutes as quickly as possible). Some crewmen tended to stay in the vicinity, but others left for other regions, caught on with other ships, died, were killed, or simply disappeared. Thus, much like the captains of naval vessels and merchant traders, the captains of pirate ships needed to recruit new crew members whenever they embarked on yet another venture. Since piracy (as opposed to privateering) was against the law, pirates devised codes that could be used to advertise for crew members without openly revealing their illegal affiliations.
The nursery rhyme "Six a Song of Sixpence" was a coded message that evolved over several years' times and was used by confederates of the notorious pirate Blackbeard to recruit crew members for his prize-hunting expeditions.