In 1686, King James II ordered Rhode Island to submit to the Dominion of New England and its appointed governor Edmund Andros. This suspended the Colony's charter, but Rhode Island managed to retain possession of it throughout the brief duration of the Dominion—until Andros was deposed and the Dominion was dissolved. William of Orange became King after the Glorious Revolution of 1688, and Rhode Island's independent government resumed under the 1663 charter—and that charter was used as the state constitution until 1842.