This king was targeted by the unsuccessful Duke of Monmouth's Rebellion before being ousted shortly after the Battle of the Boyne.
In the case of Godden v. Hales, The Court of the King's Bench allowed this man to dispense power. While serving as Lord High Admiral, this man was blamed for disbanding the fleet before peace had been secured, allowing Michiel de Ruyter to attack at Chatham.  Before becoming king, this monarch won a victory at the Battle of Lowestoft in the Second (*) Anglo-Dutch War.  This man had an unpopular second marriage to Mary of Modena and further upset many of subjects by issuing the Declaration of Indulgence, offering a degree of religious toleration. This king was targeted by the unsuccessful Duke of Monmouth's Rebellion before being ousted shortly after the Battle of the Boyne. For 10 points, name this British monarch deposed in the Glorious Revolution.
In the case of Godden v. Hales, The Court of the King's Bench allowed this man to dispense power.
James II [or James VII of Scotland; or James, Duke of York or James, Duke of Albany; prompt on James]