While he published his first novel, "Where Angels Fear to Tread," in 1905, he began writing much earlier. He wrote his first novel, "The Machine Stops" in 1909.
It's worth noting that Forster had a long and prolific writing career, publishing novels, short stories, essays, and travelogues. He continued writing until his death in 1970.