Ludwig Feuerbach argued God is just humanity looking in a mirror
In 'The Essence of Christianity' (1841), Feuerbach claimed believers project their own best qualities, love, wisdom, justice, onto an imagined being, then worship the projection as something separate from themselves. Marx later called the book the foundation he built his own critique of religion on.