The only free and comprehensive online etymological dictionary of the Spanish language
chingar (Verb) (obscene) "to fuck;" (Latin America) "to fail," "to miscarry"

19th cent. From Romany chingarár "to fight." Corominas (1991) is skeptical the Latin American senses of failure derive from the same Romany word, and instead speculates a source in an unknown New World language or languages. Chingar is probably from Proto-Indo-European *gwhen- "to strike" but the exact route is uncertain.