Mary 's uncle was King Charles II , who ruled the three kingdoms of England , Scotland and Ireland ; her maternal grandfather , Edward Hyde , 1st Earl of Clarendon , served for a lengthy period as Charles 's chief advisor .
Her grandfather by her mother 's side was Edward Hyde , 1st Earl of Clarendon .