This is how Optimus Prime and Megatron sign a peace treaty goes in My Little Pony: War for Cybertron.
[Twilight goes up to Megatron and Optimus]
Twlight Sparkle: You two should be ashamed of yourselves.
Optimus Prime: Why should we?
Megatron: It is our destiny to fight.
[Twilight looks at her friends]
Twilight Sparkle: I think you need to speak to my friends.
Optimus Prime: Okay.
Megatron: We'll do it.
[Optimus and Megatron go over to her friends]
Rainbow Dash: Okay, you two. There are two reasons why you shouldn't be fighting.
Pinkie Pie: One, its not nice to fight.
Rarity: Two, you should have discussed why you were so mad at each other instead of fighting.
Applejack: Which is actually true.
Fluttershy: And we have a suggestion.
Twilight Sparkle: How about you all live in peace instead of being at war with each other?
Optimus Prime: You know what?
Megatron: We will do it.
[Optimus Prime and Megatron then sign a peace treaty]
Megatron: There will be no war ever again, Optimus Prime. You have earned my respect.
[Optimus shakes Megatron's hand]
Optimus Prime: Good.