James II proved to be deeply unpopular in England, and he was deposed in the "Glorious Revolution" of 1688, being replaced by William and Mary. Some of James' colonial governors were not immediately replaced, and some of these were unpopular in the colonies they governed. Shortly before James' overthrow New England, New York, and New Jersey were combined as the Dominion of New England, with Edmund Andros as governor in Boston and Francis Nicholson as lieutenant governor in New York. In 1689 many of the locally recruited militia in both cities revolted as the Boston Revolt in April and Leisler's Rebellion at the end of May. Both Andros and Nicholson were imprisoned, and the New England colonies re-established their governments. In Boston the rebellion was soon over, but in New York Jacob Leisler acted as de facto governor of the province for nearly two years. The French took advantage of the situation by raiding Schenectady with their Indian allies in February 1690, causing Leisler to divert most of his resources to an unsuccessful retaliatory expedition against New France. On 19 March 1691 the newly appointed royal governor Henry Sloughter arrived in New York and imprisoned Leisler and several of the rebellion's leaders. Leisler and one other were executed on 16 May.