But in 1917–19, General Federico Tinoco Granados ruled as a military dictator until he was overthrown. The unpopularity of Tinoco's government led to a considerable decline in the size, wealth, and political influence of the Costa Rican military.