If a steel nail is half-covered in water, the part of the nail in the water quickly becomes rusty. The water contains oxygen, and the combination of water and oxygen attacks the nail. The yellow material at the bottom of the glass jar is rust that has already fallen from the nail.