Answer :

She was caught by the Nazi's and sent to Bergen-Belsen
She hid in the Annex for a little over two years. She kept a diary while in hiding until she was betrayed.