Smelling salts, also known as spirits of ammonia, are used to revive someone who has fainted or passed out.
The sharp ammonia vapour stimulates breathing when held under the nose.