In this paper, we propose a novel maximum distance separable (MDS) code based and reconfigurable intelligent surface (RIS) assisted wireless communication system with orthogonal frequency division multiplexing (OFDM). Specifically, input bits are firstly divided into groups and their MDS codes are utilized to decide the amplitudes and phases of subcarriers. The introduction of the MDS code helps to increase the minimum Hamming distance between symbols and improve on the capability of error detection. Besides, the RIS is adopted to create additional paths between the radio frequency (RF) and the receiver as well as alter the signal phases with derived optimal solution. Benefiting from the strength of the RIS, the proposed system can better overcome multipath fading compared with conventional systems. Simulation results are presented to demonstrate the efficacy of the proposed system in terms of reducing bit error rate (BER) through multipath channels.