Exclusion Crisis
The question of whether King Charles had secretly married Lucy Walter was raised during the Exclusion Crisis, when a Protestant faction wished to make her son the heir to the throne, while the king denied any marriage, and supported the claim of his brother, the Duke of York.