 Zúñiga y Miranda was born in Zacatecas into a family of old Spanish nobility.He went to Mexico City to study law and became a lawyer, but first gained fame in 1887 when he claimed to have invented a machine that could predict earthquakes.He successfully predicted an earthquake that struck the capital that year.