 Hidemasa aided Hideoyshi in the 1582 battle of Yamazaki, along with Nakagawa Kiyohide and Takayama Ukon, and received great praise the following year from Tokugawa Ieyasu for his battle prowess.At that time, Hideyoshi had just begun fighting Shibata Katsuie, and Ieyasu expressed his confidence that the campaign would go smoothly.Hidemasa was promoted to the fifth rank, appointed to the Saemonfu (左衛門, Court Security Office), and granted Sawayama in Ōmi Province as his fief, with an income of 90,000 "koku".