On 21 March, Béla Kun led a successful communist coup d'état. Károlyi was deposed and arrested. Kun formed a social democratic, communist coalition government and proclaimed the Hungarian Soviet Republic. Days later the Communists purged the Social Democrats from the government.