There are some spoilers in this blog on the movie "The Rise of Skywalker". This was hard to avoid. You should have some familiarity with the whole nine episodes of the Star Wars saga.
Please note, that there were weaknesses and failures in the Jedi Order that I missed until someone pointed them out to me in a review of "The Last Jedi". When I viewed the Last Jedi again on Netflix, I appreciated the tragic circumstances that Luke Skywalker found himself in.
The Last Jedi showed how the evil powers of the First Order had taken its toll on Luke Skywalker and other Jedi. The Rise of Skywalker exposes Palpitine as the ultimate Puppet Master and Prince of Darkness.
In Rise of Skywalker, the culmination of Palpitine's darkside powers was uniting the total power of the Sith into himself.
The continuous bloodline was important to Palpitine in conquering the Galaxy.
While Rey's bloodline came from the Dark Lord of the Sith, her positive spiritual influences came through Luke and Leia Skywalker.
Near the end of the film, the complete power of the Force was transferred to Rey by all the dead Jedi knights.
Obviously, This was "The War in Heaven" .
It appeared to me that Rey and Palpitine were avatars for the final battle between archangel Michael and archangel Lucifer.
Notice that Michael was holding two swords similar to what Rey was using in her battle with Palpitine/Lucifer.
The War in Heaven happened about 500,000 years ago and finalized with the destruction of the Luciferian base Marduk which became the astroid belt in our Solar System.