quarles was elected as a republican to the united states senate and served from march 4, 1899, to march 3, 1905. he was not a candidate for reelection in 1905. he was chairman of the committee on transportation routes to the seaboard for the 56th united states congress and chairman of the committee on the census for the 57th and 58th united states congresses.