When William succeeded his brother to the throne in 1830, the dukedom merged in the crown.
The merging of the dukedom and the crown occurred in 1830 when William ascended to the throne after his brother's death.