Inland sea
They usually happen with marine transgressions, when the sea overtops the land. They are caused by either global high ('eustatic') sea level or the formation of large geologic basins which eventually connect to the ocean.