This paper introduces novel data on public sentiment towards economic sanctions based on nearly one million social media posts in 109 countries during the Russia-Ukraine war by using machine learning. We show the geographical heterogeneity between government stances and public sentiment. Finally, political regimes, trading relationships, and political instability could predict how people perceived this inhumane war.