En la construcción de la red ferroviaria en España hubo una notable participación del capital privado extranjero, pero también ayudas públicas muy generosas, sobre las que se ejerció muy poco control contable. En este trabajo se analizan las distintas fuentes de financiación de una de las principales empresas del país, la Compañía de Ferrocarriles de Zaragoza a Pamplona (FZP) durante su breve existencia como compañía independiente, desde 1860 hasta 1865. Las dos principales conclusiones son que la aportación del Estado para la construcción del ferrocarril fue mayor que la de los propios accionistas; pero que no llegó a la propia empresa porque ese dinero fue detraído, robado. La segunda conclusión es que, en realidad, aquella empresa era, desde el punto de vista de su rentabilidad, un esquema Ponzi; una simple estafa.