Andrew Gregg was an American politician. A Democratic-Republican, he served as a United States senator from Pennsylvania from 1807 until 1813. Prior to that, he served as a U.S. representative from 1791 until 1807. From June to December 1809, he served briefly as President pro tempore of the United States Senate.