How does a ria form?

Can you answer this question?