Their fossils occur in ancient beds deposited in both freshwater and marine environments .
Their fossils occur in beds of both freshwater and marine environments .