The Russian Empire was in a difficult financial situation after the Crimean War and feared Britain would annex Russian America, especially if Russia and Britain ended up fighting another war.  So the Russian Czar Alexander II decided to sell Alaska to the United States to get some money out of it and deprive Britain of the territory.