In order to realize a substrate treating apparatus flexible as to the number of substrates treated, the substrate treating apparatus comprises a plurality of units each including treating devices, and these units are arranged in the direction for transporting the substrates.