Japan had an official slave system from the Yamato period (3rd century A.D.) until Toyotomi Hideyoshi abolished it in 1590. Afterwards, the Japanese government facilitated the use of "comfort women" as sex slaves from 1932 to 1945. Prisoners of war captured by Japanese imperial forces were also used as slaves during the same period.