Egbert was elected as a Democrat to the Forty-fourth Congress. He served as chairman of the United States House Committee on Mileage during this Congress. He declined to be a candidate for renomination in 1876. He resumed his former business pursuits, and died in Franklin, Pennsylvania. Interment in Franklin Cemetery.