Mary died of smallpox at Kensington Palace on 28 December 1694. She was buried at Westminster Abbey. When she died, Henry Purcell was called to write her funeral music, titled "Music for the Funeral of Queen Mary". William had grown to depend on Mary more and more, and was very sad when she died. It is reported that he said that "from being the happiest" he was "now going to be the miserablest creature on earth".