Dictionary definition:
betray be disloyal to (one's country, organisation, ideology or friends) by acting in the interests of an enemy.
Anne Frank was a young German Jew living in Amsterdam.
She did not 'betray' the Nazis - she was betrayed to them and died at their hands.