Around that time Tamaki began to get to know men of noble ideals in many domains, and was appointed the head student in Meirinkan when he returned to the domain in 1857.
その頃から諸藩の志士と交流し、安政5年（1857年）藩に戻ると、明倫館都講本役に任ぜられた。