How was Madagascar formed?

around 165 million years ago the dinosaurs came running through and caused a massive earthquake which caused the island to break off. the end.