In this research, PLA polymer and TPS polymer consisting of corn starch and glycerol and also nanoclay were used to make FDM nanocomposite filaments. The polymer alloy was made at 50 wt%, 60 wt% and 70 wt% of TPS and the nanocomposite was obtained by nanoclay at 1 wt%, 3 wt% and 5 wt% in the polymer matrix with 60 wt% TPS. The filament with a diameter of 1.75 mm was made by a single-screw extruder by designing and manufacturing a mold. Flexural, tensile and impact specimens were produced from filaments made by FDM machine. In order to compare the mechanical properties, aforementioned compounds were produced by injection molding method. Differential scanning calorimetry, thermogravity analysis, scanning electron microscopy, melting flow index, density measurement, water absorption and biodegradation in soil were used to characterize the thermal and structural properties. Experimental results showed that the addition of TPS to PLA leads to a decrease in tensile strength, Young's modulus, flexural strength, flexural modulus and impact resistance, while the elongation at break increases. Molded specimens also showed better mechanical properties than printed specimens. The tensile strength of the specimens increased with the addition of nanoclay. The highest tensile strength was observed in the molded specimens at 3 wt% of nanoclay and in the printed specimens at 1 wt% of nanoclay. The Young’s modulus also increased significantly with the addition of nanoclay in the specimens. The specimens became more viscous with the addition of nanoclay and the melting flow index decreased. According to the results of thermal tests, it was observed that nanoclay increases the crystallization rate of the substrate and also reduces the melting temperature and transition glass temperature. In addition, nanoclay increases the thermal stability of the polymer specimen and is more resistant to thermal degradation of the TPS phase. The results of water absorption test also showed that the highly hydrophilic nature of TPS causes high water absorption in alloy specimens, although nanoclay can be used as an insulator to reduce water absorption so that at 5 wt% of nanoclay, the amount water absorption decreases from 42% to 31%. The density of the specimens was also compared with each other and it was observed that TPS and nanoclay generally increased the final density of the compound. Soil biodegradability test showed that TPS is strongly attacked by enzymes in the soil, although the addition of nanoclay can slightly reduce nanocomposite degradation. Keywords: Filament, Biodegradable polymer, FDM 3d printing, Bio-Based nanocomposite