 In 1921, President Warren G. Harding named Wells as the United States Attorney for Puerto Rico, a position he held until 1924.The following year, President Calvin Coolidge named Wells as Judge of the United States District Court for the District of Puerto Rico.Wells served two four-years terms as the sole federal judge in Puerto Rico, being renominated by President Herbert Hoover in 1929.