Layered oxides have been the dominant cathodes in lithium-ion batteries, and among them, high-nickel (Ni) systems are attractive because of their high capacity. For practical use, synthetic control of stoichiometry and structural ordering is crucial but has been nontrivial due to the complexity inherent to synthesis reactions, which often proceed via nonequilibrium pathways. We report here a combined in situ synchrotron X-ray diffraction and ab initio study of solid-state synthesis of layered oxides starting from acetate precursors for LiCoO2and LiNiO2and their solid solution LiNi0.8Co0.2O2. While all three systems ultimately evolve into the same thermodynamically stable layered phase (R3¯ m), each chemistry involves distinct metastable intermediates. We explain the phase progressions using a structural template model, demonstrating that during the synthesis of LiCoO2, the formed metastable spinel polymorph (Li2Co2O4; Fd3¯ m) is a kinetically facile lithiation product of spinel Co3O4- the low-temperature (LT) intermediate from the decomposed Co-acetate. Similarly, in the Ni-based systems, the acetate decomposition products, rocksalts (Ni,Co)O, topotactically template the kinetic pathways of forming disordered rocksalts (Lix(Ni,Co)2-xO2; Fm3¯ m), consequently leading to off-stoichiometric Lix(Ni,Co)O2with undesired high Li/Ni mixing. These findings highlight new opportunities for engineering precursors to form LT intermediates that template the synthesis of target phases and structural properties.