Born in Sunpu Domain to humble origins, Yui is said to have been a talented youth; he was taken in by a number of rōnin from the area, who taught him recent history, and likely swordsmanship and military strategy as well.
But the schools also served as social and intellectual spaces, in which political ideas were discussed, and grievances aired in a familiar environment where comrades and friends met.
Here he continued to gain contacts, friends, and prestige among the ronin and others; one of them was Marubashi Chūya, a samurai and fellow instructor of martial disciplines and strategy, with whom he would plan the Keian Uprising some years later.
Yui was in Sunpu, preparing to execute a secondary series of attacks when Marubashi was arrested in Edo; surrounded by shogunate officials, he committed seppuku rather than be captured.
Most, of course, did not act upon their beliefs as Yui and Marubashi did, but that discussion existed among a great number of people, despite, or perhaps because of the shogunate's strict enforcement of its laws, is significant.