"Gintama" is set in an alternate-history Edo period, where Earth has been conquered by alien beings known as Amanto. The samurai class has been stripped of its power, and the use of swords is banned. The story centers on Gintoki Sakata, a former samurai who now works as a freelance odd-jobber, taking on various tasks to make ends meet. Gintoki is joined by Shinpachi Shimura, a glasses-wearing teenager who acts as the group's moral compass, and Kagura, a strong and cheerful alien girl from the Yato clan. Together, they form the Yorozuya, a small business that accepts any job, no matter how strange or mundane.
The narrative blends comedy, action, and drama, often shifting tones seamlessly. While many episodes are episodic and focus on humorous, self-contained stories, the series also features longer, more serious arcs that delve into the characters' backstories and the political tensions between humans and Amanto. Key recurring characters include the Shinsengumi, a police force led by the stoic Isao Kondo and his subordinates, the hot-headed Hijikata Toshiro and the prodigious Okita Sougo. Other notable figures include Katsura Kotaro, Gintoki's former comrade in the Joui War, and Takasugi Shinsuke, a radical revolutionary with a personal vendetta against Gintoki.
The series explores themes of loyalty, friendship, and the struggle to maintain one's identity in a rapidly changing world. Gintoki's past as a Joui patriot, fighting against the Amanto invasion, is gradually revealed, adding depth to his carefree demeanor. The Yorozuya frequently find themselves entangled in conflicts involving the Amanto, the Shogunate, and various criminal organizations, often balancing their personal struggles with the larger societal issues at play. Despite its comedic foundation, "Gintama" frequently addresses serious topics, such as loss, sacrifice, and the consequences of war, creating a multifaceted narrative that resonates with a wide audience.