The Gintama manga is authored by Sorachi Hideaki, and the anime series is based on the manga. The manga was first serialized in Weekly Shounen Jump, interspersed with the occasional episode created by the anime creators themselves. In accordance to the manga's original premise, the series is a part-period drama, part science-fiction and 100% comedy; with elements of space monsters and aliens mixed with historical samurai and ninjas.