How long did Anne Frank hide from the Nazi persecution during WW II?

How long did Anne Frank hide from the Nazi persecution during WW II?