A Federalist, Meredith was then elected to the Pennsylvania General Assembly, where he served in the minority for five years, from 1824 to 1828, the year of his mother's death (during which his father was grief-stricken and never fully recovered).
Meredith strongly opposed the free trade legislation passed the year before under his predecessor Robert J. Walker.