The present invention relates to a driving apparatus for farming machines which has rail wheels operating along rails and wheels operating on the ground, moves along rails installed in vinyl green house or an orchard to automatically spray nutrient broths or agricultural pesticides to crops or to collect crops, and transfers collected crops by a cart. The apparatus comprises: a first driving wheel (100) which is provided in a rear and lower part of a main body (10) on which a handle is located, and drives on the ground a second driving wheel (300) which is provided in a front and lower part of the main body (10) and drives on the ground a first rail wheel (500) which is provided in a rear and lower part of the main body (10) and drives along rails and a second rail wheel (700) which is provided in a driving shaft of the second driving wheel and drives along the rails.COPYRIGHT KIPO 2018본 발명은 레일을 따라 운행할 수 있도록 레일바퀴를 구비하고, 지면에서 운행할 수 있도록 바퀴를 구비하여 비닐하우스 내부 또는 과수원 등에 설치된 레일을 따라 이동하며 효율적으로 농작물에 영양액 또는 농약 등을 자동으로 살포하거나 농작물을 수거하고, 수거한 농작물을 운반차로 바로 운반할 수 있도록 한 농기계의 구동장치에 관한 것으로,핸들이 위치한 본체(10)의 후방하부에 구비되어 지면을 따라 운행하는 제1구동바퀴(100)와 본체(10)의 전방 하부에 구비되어 지면을 따라 운행하는 제2구동바퀴(300)와 본체(10)의 후방하부에 구비되어 레일을 따라 운행하는 제1레일바퀴(500)와 제2구동바퀴의 구동축에 구비되어 레일을 따라 운행하는 제2레일바퀴(700)를 포함하는 것을 특징으로 한다.