In 689, a department named sakabe (the office in charge of sake brewing) was placed in Sake no tsukasa (also referred as Miki no tsukasa [the office in charge of the imperial use of sake, sweet sake, or vinegar etc.] written as 造酒司 or 造酒寮) in Kunaisho (Ministry of the Sovereign's Household), based on Asukakiyomihararyo (the legal code of Japanese ancient state).
持統3年（689年）には飛鳥浄御原令（あすかきよみはらりょう）に基づいて宮内省（くないしょう）の造酒司（さけのつかさ/みきのつかさ　「造酒寮」とも）に酒部（さかべ）という部署が設けられた。