How are swallow holes formed?

If you are referring to sink holes, they form when groundwater makes the ground unstable and it collapses.