A universal track machine for the repair of mainline running tracks and turnouts of railway or tramway systems. It is designed to adjust the track axis horizontally (sliding) and vertically (lifting), and to heap and at the same time compact the ballast under the sleeper.