Original: Wario's motive behind this sudden attack was to take control over Mario's castle to have a palace of his own.
Simplified: While he is away, Wario takes over the castle.