Abstract: The aim of this work was to optimize a maceration condition of cannabis (Cannabis sativa L.). A circumscribed central composite experimental design was applied in this work. Temperature and time were varied from 40-80 °C and 30-90 min, respectively. The three responses (i.e., extraction yield, cannabidiol content, and Δ9- tetrahydrocannabinol content) were predicted by computer software. The yield was high when cannabis was macerated using ethanol at high temperature and long duration time. While cannabidiol and Δ9- tetrahydrocannabinol content was high when macerating at a low heating temperature and short duration time. The optimal condition provided the simultaneous high of cannabidiol and Δ9- tetrahydrocannabinol content was 40 °C for 30 min. The prediction was accurate due to low percent error. This optimal condition could be used as a guide for maceration of cannabis to obtain the extract containing a high content of cannabidiol and Δ9- tetrahydrocannabinol.