Takechi Hanpeita, a samurai of Tosa domain who campaigned for the expulsion of foreigners, unwittingly travels 150 years in time from the last days of the Tokugawa shogunate to present day Japan. He becomes a teacher at a private school run by Saeki Makoto in a village in the remote countryside through an unexpected turn of events, and solves all kinds of problems in the village with methods unique to a samurai.