Among many types of batteries, Li-ion and Li-S batteries have been of great interest because of their high energy density, low self-discharge, and non-memory effect, among other aspects. Emerging applications require batteries with higher performance factors, such as capacity and cycling life, which have motivated many research efforts on constructing high-performance anode and cathode materials. Herein, recent research about cathode materials are particularly focused on. Low electron and ion conductivities and poor electrode stability remain great challenges. Three-dimensional (3D) porous nanostructures commonly exhibit unique properties, such as good Li+ ion diffusion, short electron transfer pathway, robust mechanical strength, and sufficient space for volume change accommodation during charge/discharge, which make them promising for high-performance cathodes in batteries. A comprehensive summary about some cutting-edge investigations of Li-ion and Li-S battery cathodes is presented. As demonstrative examples, LiCoO2, LiMn2O4, LiFePO4, V2O5, and LiNi1−x−yCoxMnyO2 in pristine and modified forms with a 3D porous structure for Li-ion batteries are introduced, with a particular focus on their preparation methods. Additionally, S loaded on 3D scaffolds for Li-S batteries is discussed. In addition, the main challenges and potential directions for next generation cathodes have been indicated, which would be beneficial to researchers and engineers developing high-performance electrodes for advanced secondary batteries.