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://kd-cerknica.si/class/transformerji/</p>