The Mirror is where Mary went to escape her death. The mirror survived the fire and when CiCi unleashed the curse, Mary found her way out of the mirror and killed others who had been there when CiCi had let her out. She killed Richard there, despite declaring her love for him, and then she killed herself before returning to the mirror and awaiting her next escape.