Link's post sums it up pretty well.
It's pretty cool how senator Palpatine (and Jango) were behind BOTH the armies (clones and droids). He just couldn't lose!

Now they made him surpreme something to counter the clone attack, while he made it himself!
