On 10 September 1987 , after a lecture from hard - liner Yegor Ligachev at the Politburo for allowing two small unsanctioned demonstrations on Moscow streets , Boris Yeltsin wrote a letter of resignation to Gorbachev who was holidaying on the Black Sea .