A set of pyridine derivatives bearing a substituted alkylthio chain or a piperidyl ring in position 2 or 4 were synthesized, and their antimycobacterial and antifungal activities were evaluated.