Optimus Prime and Megatron are known to be sworn enemies, and in the story of their origins we learn that they were once friends who changed the fate of C'amatbertron forever.
Source: https://www.kd-domzale.si/transformerji-ena-26-08-2024.html">TRANSFORMERJI ENA KD Domžale (kd-domzale.si)