Content of this work is the mathematical modelling and controlling of a hydraulic system, consisting of a valve, long pipelines and a cylinder. In most works, the influence of the pipelines is neglected. However, with increasing length of the pipes, effects like damping, reflections and delays get a significant influence on control behaviour. In the first part of this thesis, a mathematical model of the considered system is prepared. Starting from the partial differential equations, which describe the pipelines, reduced models are created by means of spatial discretization with the spectral element method (SEM). These models are compared with the method of characteristics (MOC). The behaviour of the system, with and without pipelines, is shown by simulation. These models form the basis of the control strategy and the simulative test. The first considered control strategy is based on exact input output linearisation of the system. The controller is implemented for the system without pipelines and its robustness is proved. It is shown that this controller concept is working stable only for relatively short pipes. Therefore, the possibility of taking the pipelines into account is examined. It turns out that the relative degree of the system depends on the chosen discretization and that mathematical expressions are already very big for a small amount of discretization points. This makes the implementation very difficult, such that this approach is no longer traced in this thesis. In the second step, a model predictive control is developed and exhaustively tested, whereby this controller is also first designed without including the pipelines. It is shown, that with this implementation, a more robust control concept is found than with the input output linearisation. Moreover, with model predictive control the pipes can be taken into account for the controller. This, however, requires more computational power. The outcomes show that a dynamic feedforward can be implemented in that way. Moreover, with this concept, the length of the pipelines can be slightly extended and the resulting system can still be controlled stable. However, because of the chosen discretization and the chosen integration procedure, numerical inaccuracies appear in this simulation. Therefore, controlling long pipes is not directly possible with this control concept.