She had to take care of her younger sister.

Literal

She [topic-は] younger-sister [possessive-の] care [object-を] must did.

妹の世話をしなければならなかった — the past obligation pattern. 世話をする (せわをする, 'to look after / take care of') is one of the most essential caregiving expressions in Japanese.