Complex sentence: Homosexuality at the time was seen as a serious illness and was also a criminal offence, so both sets of parents attempted to compel the girls to remain separate.
Split into simpler sentences: Homosexuality at the time was seen as a serious illness. Both sets of parents attempted to compel the girls to remain separate.