How did Frederick Williams 1 help to unify Prussia after the death of his farther in 1713?

Leopold I allowed Frederick William I to unify Prussia as a kingdom that needed ruling. Because of this Prussia allied with Austria against King Louis XIV of France in the Spanish succession war.