The occupation regime kept most Dominican laws and institutions and largely pacified the general population. The occupying government also revived the Dominican economy, reduced the nation's debt, built a road network that at last interconnected all regions of the country, and created a professional National Guard to replace the warring partisan units. Opposition to the occupation continued, nevertheless, and after World War I it increased in the U.S. as well. There, President Warren G. Harding (1921–23), Wilson's successor, worked to put an end to the occupation, as he had promised to do during his campaign. The U.S. government's rule ended in October 1922, and elections were held in March 1924.