Ir and Estar in past tense have the same form (spelling and pronunciation) and different meaning. Context determines whether is one or other.