diff --git a/windows/deps/Makefile b/windows/deps/Makefile
index c49fdc20aaae2fee8b663dea3faac4a87606e6f7..8e8f59d74cce4ee68b41af1cdbf361b9678e0854 100644
--- a/windows/deps/Makefile
+++ b/windows/deps/Makefile
@@ -157,6 +157,7 @@ mingw64: tarballs/mingw-w64-x86_64-gcc-$(MINGW64_GCC_VERSION)-any.pkg.tar.zst ta
 	touch $@
 
 tarballs/mingw-w64-x86_64-%-any.pkg.tar.zst:
+	mkdir -p tarballs
 	wget $(WGET_OPTIONS) -O $@ http://repo.msys2.org/mingw/x86_64/$(notdir $@)
 
 clean-msys2: