The global concern over water pollution caused by organic pollutants such as methylene blue (MB) and other dyes has reached a critical level. Herein, the Allium cepa L. peel extract was utilized to fabricate copper oxide (CuO) nanoparticles. The CuO was combined with MgAl-layered double hydroxides (MgAl-LDHs) via a co-precipitation method with varying weight ratios of the CuO/LDHs. The composite catalysts were characterized and tested for the degradation of MB dye. The CuO/MgAl-LDH (1:2) showed the highest photocatalytic performance and achieved 99.20% MB degradation. However, only 90.03, 85.30, 71.87, and 35.53% MB dye was degraded with CuO/MgAl-LDHs (1:1), CuO/MgAl-LDHs (2:1), CuO, and MgAl-LDHs catalysts, respectively. Furthermore, a pseudo-first-order rate constant of the CuO/MgAl-LDHs (1:2) was 0.03141 min−1 while the rate constants for CuO and MgAl-LDHs were 0.0156 and 0.0052 min−1, respectively. The results demonstrated that the composite catalysts exhibited an improved catalytic performance than the pristine CuO and MgAl-LDHs. The higher photocatalytic performances of composite catalysts may be due to the uniform distribution of CuO nanoparticles into the LDH matrix, the higher surface area, and the lower electron and hole recombination rates. Therefore, the CuO/MgAl-LDHs composite catalyst can be one of the candidates used in environmental remediation.