How do you separate gold in dirt?

Gold miners use a type of strainer to separate dirt from gold. They dip it into water because the dirt will rinse threw the strainer.