IMIDER, Morocco — On a hilltop nearly 5,000 feet high in the Atlas Mountains here, a tiny outpost has taken shape over the past two years. The small stone buildings are decorated gaily with graffiti, and there is an open-air gallery. Many doors bear inspirational inscriptions from people like the Rev. Dr. Martin Luther King Jr. and Mother Teresa. On the dam of a nearby reservoir, someone has painted the face of a local activist, now in jail on what the locals regard as trumped-up charges.

It is an unlikely spot for a settlement, but it was established with a purpose: to protest a mining company’s expropriation of precious water supplies, as well as the pollution that results from the mining.

The inhabitants are drawn from the nearby municipality of Imider, 6,000 people scattered over seven villages and neighbor to the most productive silver mine in Africa.

But while the area may be rich in silver, it is home to some of the poorest people in Morocco.

The people of Imider (pronounced ee-me-DER) say they have grown to resent the mine because they get nothing from it except pollutants. So two years ago, some of them climbed up the hill and cut the water supply to the mine. Since then, they have occupied the hill as they continue to fight the Imiter Mettalurgic Company and, by extension, the king of Morocco, its principal owner.