Marxism is a philosophy, while communism is a system of government based on Marxist principles. Marx envisioned a society in which workers owned the means of production. In real-world communism, governments own the means of production.
https://www.investopedia.com/terms/m/marxism.asp