The Treaty of London, agreed on March 25, 1700 and sometimes known as the Second Partition Treaty, was an attempt to restore the Pragmatic Sanction following the death of Joseph Ferdinand of Bavaria, which had undermined the First Partition Treaty (the Treaty of Den Haag). Under the new Treaty, Archduke Charles (later Emperor Charles VI), the second son of the Emperor Leopold I, was to succeed King Charles II of Spain on his thrones and acquire his oversees colonies.