They killed Tsar Nicholas II, his wife Alexandra, and their five children in July 1918. The Bolsheviks had taken over Russia after the 1917 Revolution. The Romanovs were killed for political reasons, mostly to stop anyone from trying to take power again. People who were against the Bolsheviks, especially those who wanted to bring back the throne, still saw Nicholas II as a possible symbol. The Bolsheviks made it clear that the old way of running the country was over for good by getting rid of the Romanov family. This strengthened their power over the country and sent a strong message that there would be no return to the monarchy.
After the February Revolution of 1917, Tsar Nicholas II gave up his power, ending the rule of the Romanov family. Russia was in the middle of a civil war, and Nicholas was no longer king. The Bolsheviks were afraid that the Romanovs would become a symbol for people who wanted to bring back the throne. One of these groups was the White Army, which fought the Bolsheviks. The Bolsheviks chose to kill the whole Romanov family so that they couldn't be used to gain support. This made sure that the monarchy would never return.
The Russian Civil War was getting worse by the middle of 1918, and the White Army, which was fighting the Bolsheviks, was getting closer to Ekaterinburg, which was where the Romanovs were being held. The Bolsheviks were afraid that the White Army would save the family and use them as a political symbol to get more people to support bringing back the throne. The Bolsheviks chose to kill the Romanovs before the White Army could get to them to stop this.
Putting the Romanov family to death was meant to send a strong message. The Bolsheviks wanted to get rid of the whole authoritarian system, in which the Tsar had complete control, not just the Romanovs. They made sure that the Romanovs could never come back or keep ruling by killing Nicholas II and his whole family. This execution was a clear break with Russia's imperial past. It showed that the revolution had changed the country so much that it would never go back to the old order.
Lenin and other top Bolshevik leaders didn't directly order the Romanovs to be killed, but some local leaders in Ekaterinburg, like Yakov Yurovsky, thought it was important to keep the family down. It was a mess during the Russian Civil War, and the Bolsheviks were afraid that anti-Bolshevik groups like the White Army would use the Romanovs to get support. Because of the war, the local leaders felt pushed to act quickly and firmly, even though they didn't have clear orders from Moscow.
But Lenin and other top Bolshevik leaders didn't tell anyone to kill the Romanovs. Instead, some leaders in Ekaterinburg, like Yakov Yurovsky, thought it was important to keep the family down. The Russian Civil War was a mess, and the Bolsheviks were afraid that groups that were against them, like the White Army, would use the Romanovs to get support. The war made the leaders in the area feel like they had to act quickly and strongly, even though Moscow hadn't given them clear instructions.
Smith, Douglas. Former People: The Final Days of the Russian Aristocracy. This book provides a detailed account of the fall of the Romanov family and the aristocracy in Russia.
Figes, Orlando. A People's Tragedy: The Russian Revolution 1891–1924. This work delves into the Russian Revolution and explains the political context that led to the execution of the Romanovs.
Massie, Robert K. Nicholas and Alexandra: The Fall of the Romanov Dynasty. A thorough account of the life of the last Romanov family and the events leading to their execution.
Smithsonian Magazine article on the Romanovs' execution: Smithsonian
History.com on the Russian Revolution and Romanov execution: History.com