Source of oil sand or tar sand?

Were there any scientific explaination on how is these oil sand or tar sand comes from ? Why they can be found in the middle of continenet ? Are they from marine fossils ?
3 answers 3