thumb|Shuma Hiroyuki, later known as Jiraiya, using a heavy gun to defeat a huge snake that preyed on his toads.

Jiraiya (自来也 or 児雷也, literally "Young Thunder"), originally known as Ogata Shuma Hiroyuki (尾形周馬寛行), is the toad-riding protagonist of the Japanese folk tale Katakiuchi Kidan Jiraiya Monogatari (報仇奇談自来也説話, The Tale of the Gallant Jiraiya). The tale was originally a Yomihon that was published in 1806–1807, and was adapted into a serialized novel that was written by different authors and published in 43 installments from 1839 to 1868; one of its illustrators was woodblock artist Kunisada. Kawatake Mokuami then wrote a kabuki drama based on the first ten parts of the novel, which premiered in Edo in 1852, starring Ichikawa Danjūrō VIII in the leading role. Since then the story has been adapted into several films, video games, manga, and has also influenced various other works.

Classic tale – Katakiuchi Kidan Jiraiya Monogatari

Katakiuchi Kidan Jiraiya Monogatari (報仇奇談自来也説話)  is considered the first novel or Yomihon to be adapted into a kabuki play, the novel was written by Kanwatei Onitake (感和亭鬼武) and was published between 1806 and 1807. The story was later adapted many more times with variations in the story.

One day, Jiraiya heard of an old man who lived in Shinano and so he started off to rob him. The land was a place full of mountains and was full of snow in the winter. During the journey, he was beset by a great snowstorm and he took refuge in a small house that he happened upon, inside was a beautiful woman who treated him with great kindness. This did not change Jiraiya's nature as a robber though and after midnight he went to kill her with his sword while she was reading. However, in a flash, her body changed to a very old man who grabbed the heavy steel blade and easily broke it into pieces. He then announces his name as Senso Dojin, and that he is a giant frog that has lived on the mountain for hundreds of years. He pardons Jiraiya after telling him he could kill him easily and then teaches him magic arts. Jiraiya stayed with Senso Dojin for several weeks learning the magic arts of the mountain sprites in order to control the weather as well as to control frogs and change their shape and size at will. After Senso teaches him he forbids him from robbing or injuring the poor and helpless and to instead take from those who use and acquire money dishonestly and to help the needy and suffering. He then turns into a giant frog and hops away.]]

During this time when Jiraiya was helping the poor and needy, a young maiden named Tsunade also lived in the same province of Kiushiu. She was a model daughter and was always obedient and kind. One day during her trip into the mountains for firewood she met a very old man who approached her and told her he had lived in the mountains for hundreds of years and that his body was really that of a snail. He then offers to teach Tsunade the powers of magic he possesses. She gladly accepted and began training daily with the old man. Once she had mastered the magic, she was advised to use her powers to defend the poor and destroy wicked robbers, and to join her powers with Jiraiya in the form of marriage. The old man then turns into a snail and crawls away. Tsunade then remarks that she and Jiraiya with the combination of slug magic and frog magic would be able to destroy a robber named Orochimaru, who was the son of a serpent. Tsunade and Jiraiya eventually met and were married soon after.