How were the Bahamas formed?

The Bahamas were formed from volcanos originally but, when the Bahamian Hotspot went away coral reef grew and then eroded away making many, many, many small islands which people eventually inhabited.
Another theory is that some land came off of Africa back in Pangea Times and when North America split away The Bahamas came as well because they are on the same continental plate as North America.