Anne was born at 11:39 p.m. on 6 February 1665 at St James's Palace, London, the fourth child and second daughter of the Duke of York (afterwards James II and VII), and his first wife, Anne Hyde. Her father was the younger brother of King Charles II, who ruled the three kingdoms of England, Scotland and Ireland, and her mother was the daughter of Lord Chancellor Edward Hyde, 1st Earl of Clarendon. At her Anglican baptism in the Chapel Royal at St James's, her older sister, Mary, was one of her godparents, along with the Duchess of Monmouth and the Archbishop of Canterbury, Gilbert Sheldon. The Duke and Duchess of York had eight children, but Anne and Mary were the only ones to survive into adulthood.