In 1588, Toyotomi Hideyoshi issued a ban on Wakō piracy; the pirates then became vassals of Hideyoshi and comprised the naval force used in the Japanese invasion of Korea.