Complex sentence: Asylums for the insane were opened in 1835 in Saint John, New Brunswick, and in 1841 in Toronto, when care for the mentally ill became institutionally based.
Split into simpler sentences: Asylums for the insane were opened in 1835 in Saint John and New Brunswick. In 1841 in Toronto, when care for the mentally ill became institutionally based.