It is widely believed that the Roma people migrated to southern Spain from Rajasthan coming from India. This happened sometime between the ninth and fourteenth centuries and these people brought a large repertoire of songs, dances, and musical instruments, including tambourines, bells, and wooden castanets.
Over time, these Indian folkloric traditions mingled with the musical traditions of the Sephardic Jews and the Moors, resulting in what it known today as flamenco music.
That is the explanation that the Golden Triangle of Flamenco is where most people believe that flamenco was originated. This area is between the cities of Cadiz, Jerez de la Frontera and Triana from Seville.