The word well in this sentence is used as a noun. This is because the word well can be used in many ways and has different meanings, but in this sentence it is used to describe a stone structure used to access clean water. And because a noun is a person, place, or thing, the word well in this sentence is a noun (because it is a thing).