Energy harvesting employing piezoelectric materials in mechanical structures such as cantilever beams, plates, diaphragms, etc, has been an emerging area of research in recent years. The research in this area is also focused on structural tailoring to improve the harvested power from the energy harvesters. Towards this aim, this paper presents a method for improving the harvested power from a cantilever piezoelectric energy harvester by introducing multiple rectangular cavities. A generalized model for a piezoelectric energy harvester with multiple rectangular cavities at a single section and two sections is developed. A method is suggested to optimize the thickness of the cavities and the number of cavities required to generate a higher output voltage for a given cantilever beam structure. The performance of the optimized energy harvesters is evaluated analytically and through experimentation. The simulation and experimental results show that the performance of the energy harvester can be increased with multiple cavities compared to the harvester with a single cavity.