And what of sand bars?

How are they created, and what are their functions?