Complex sentence: The couple had no children, but Margaret devoted herself to her stepdaughter Mary; and after Mary's death many years later, she kept Mary's two infant children as long as she was allowed.
Split into simpler sentences: The couple had no children, but Margaret devoted herself to her stepdaughter Mary. After Mary's death many years later, she kept Mary's two infant children as long as she was allowed.