An automated sidewall assembly machine is provided for attaching a sidewall panel to a top and bottom rail of a wheeled trailer. The machine comprises a frame, a carriage for longitudinal movement relative to the frame, an automated punch mounted proximate the frame and an automated riveting press mounted proximate the frame so that the sidewall assembly is movable by the carriage with respect to the frame, the automated punching machine and the automated riveting machine so that holes can be punched through one or more of the sidewall, the bottom rail and the top rail and rivets can be inserted into the punched holes to be mashed. A sensor is operably mounted to the sidewall assembly machine so that information obtained by the sensor can be used to drive the carriage, the automated punching machine and the automated riveting press. A drive motor in communication with the carriage moves the carriage longitudinally with respect to the frame, and a control system having a processor is in operative communication with the carriage, the automated puncher, the automated riveting press, the sensor, and the drive motor.