The company dates back to 1835 when Georg Egestorff founded in Linden near Hanover a company called Eisen-Giesserey und Maschinenfabrik Georg Egestorff to build small steam engines. They soon started making farm machinery and in 1846 built their first railway locomotive for the Royal Hanoverian State Railways. By 1870 they had made 500 locomotives and in 1871 changed their name to Hannoversche Maschinenbau Actien-Gesellschaft vorm.