Purpose: To evaluate respiratory motion of a patient by generating four-dimensional digital tomosynthesis (4D DTS), extracting respiratory signal from patients' on-board projection data, and ensuring the feasibility of 4D DTS as a localization tool for the targets which have respiratory movement. Methods and Materials: Four patients with lung and liver cancer were included to verify the feasibility of 4D-DTS with an on-board imager. CBCT acquisition (650-670 projections) was used to reconstruct 4D DTS images and the breath signal of the patients was generated by extracting the motion of diaphragm during data acquisition. Based on the extracted signal, the projection data was divided into four phases: peak-exhale phase, mid-inhale phase, peak-inhale phase, and mid-exhale phase. The binned projection data was then used to generate 4D DTS, where the total scan angle was assigned as ±22.5° from rotation center, centered on 0° and 180° for coronal "half-fan" 4D DTS, and 90° and 270° for sagittal "half-fan" 4D DTS. The result was then compared with 4D CBCT which we have also generated with the same phase distribution. Results: The motion of the diaphragm was evident from the 4D DTS results for peak-exhale, mid-inhale, peak-inhale and mid-exhale phase assignment which was absent in 3D DTS. Compared to the result of 4D CBCT, the view aliasing effect due to arbitrary angle reconstruction was less severe. In addition, the severity of metal artifacts, the image distortion due to presence of metal, was less than that of the 4D CBCT results. Conclusion: We have implemented on-board 4D DTS on patients data to visualize the movement of anatomy due to respiratory motion. The results indicate that 4D-DTS could be a promising alternative to 4D CBCT for acquiring the respiratory motion of internal organs just prior to radiotherapy treatment.