In this study, we investigate the effects of partition in a cavity on heat flux in a hypersonic ramp flow by carrying out both CFD and experiment. The experiment was conducted at M=8.1 at the shock tunnel of Nagoya University. It is found from results that the separation region becomes larger by installing a partition inside the cavity. As a result, the interaction between the separated hypersonic laminar boundary layer and the back wall of the cavity weakens, and the heat flux at the cavity back wall can be reduced by up to 50% compared with the case without partition. Moreover, it is made clear that the heat flux on the partition sidewall increases and that its cross-sectional average is almost the same as the maximum heat flux in the case without cavity.