One of the ancient problems was telling gold from other minerals that looked like gold.
Many people got excited by iron pyrites, which is rock containing a compound of iron
and sulfur that looks like gold. If you had strong acid, it would dissolve the iron pyrites.
I read somewhere that when gold was discovered in California, a military officer named Shermad
who later became a famous general in the Civil War, was consulted because he had previous
experience with gold. He didn't have any acid, but showed that its extreme malleability
was consistent with its being gold.
Gold and other "noble" metals can be dissolved in a mixture of nitric and hydrochloric acid
called "aqua regia".