Vishnu killed them by manifesting as Hayagreeva, after Madhu and Kaidabha stole the Vedas, and hid them in the Ocean.
Vishnu then retrieved the Vedas.
The bodies of Madhu and Kaidabha split into 12 parts(two times Six)
These twelve are the Twelve tectonic plates of the earth.( Padma Purana)
