Farming had been a traditional occupation for centuries, although it became less dominant in the 20th century with the advent of tourism.