They are polymers, i.e. repeated compounds of molecules in a specific order. If molecules are added or removed, a synthetic polymer is formed.
Depending on the type of plastic, it lasts from 500 to 1000 years. This is a big problem since we choose and use single-use plastics and even bigger since we do not recycle them.