There is great interest in self-assembled oxide vertical nanocomposite fi lms consisting of epitaxial spinel pillars in a single crystal perovskite matrix, due to their tunable electronic, magnetic, and multiferroic properties. Varying the composition or geometry of the pillars in the out-of-plane direction has not been previously reported but can provide new routes to tailoring their properties in three dimensions. In this work, ferrimagnetic epitaxial CoFe 2 O 4 , MgFe 2 O 4 , or NiFe 2 O 4 spinel nanopillars with an out-of-plane modulation in their composition and shape are grown in a BiFeO 3 matrix on a (001) SrTiO 3 substrate using pulsed laser deposition. Changing the pillar composition during growth produces a homogeneous pillar composition due to cation interdiffusion, but this can be suppressed using a suffi ciently thick blocking layer of BiFeO 3 to produce bi-pillar fi lms containing for example a layer of magnetically hard CoFe 2 O 4 pillars and a layer of magnetically soft MgFe 2 O 4 pillars, which form in different locations. A thinner blocking layer enables contact between the top of the CoFe 2 O 4 and the bottom of the MgFe 2 O 4 which leads to correlated growth of the MgFe 2 O 4 pillars directly above the CoFe 2 O 4 pillars and provides a path for interdiffusion. The magnetic hysteresis of the nanocomposites is related to the pillar structure.