Why does my daughter throw tantrums at bed time?

why would my daughter all of a sudden be throwoing tantrums at bedtime? it never fails…she is 2 years old and used to go to bed just fine on her own but lately its a struggle and she just screams and cries…is it a phase?