What era and period did reptiles first appear?

they evolved in marsh habitats around 350 million yrs ago

The first known decedent for the dinosaurs was the hylonomas.