mid-18c., lively Spanish dance, the word of unknown etymology [OED says "alleged to be of negro origin"], perhaps related to fado. Fado is lovely, but not lively, so perhaps the link, if any, is thematic. But the late date argues against it.