Funicular railways were developed in response to the needs of very specific terrain problems – namely moving cargo up and down inclines, or rapid changes in elevation. The first predecessor of the modern funicular railway was developed in the 1500s at Hohensalzburg Castle in Salzburg.