The name of Zermatt , as well as that of the Matterhorn itself , derives from the alpine meadows , or matten ( in German ) , in the valley .
Until the mid-1800s , it was mostly a farming community ; its name , as well as that of the Matterhorn itself , derives from the alpine meadows , or matten , in the valley .