Recent developments in high-temperature superconductivity highlight a generic tendency of the cuprates to develop competing electronic (charge) supermodulations. While coupled with the lattice and showing different characteristics in different materials, these supermodulations themselves are generally conceived to be quasi-two-dimensional, residing mainly in individual CuO 2 planes, and poorly correlated along the c axis. Here we observed with resonant elastic X-ray scattering a distinct type of electronic supermodulation in YBa 2 Cu 3 O 7-x (YBCO) thin films grown epitaxially on La 0.7 Ca 0.3 MnO 3 (LCMO). This supermodulation has a periodicity nearly commensurate with four lattice constants in-plane, eight out of plane, with long correlation lengths in three dimensions. It sets in far above the superconducting transition temperature and competes with superconductivity below this temperature for electronic states predominantly in the CuO 2 plane. Our finding sheds light on the nature of charge ordering in cuprates as well as a reported long-range proximity effect between superconductivity and ferromagnetism in YBCO/LCMO heterostructures.