On January 1, 1890, Rivero returned to Puerto Rico and was assigned to the 12th Battalion of Plaza.
As a captain, he was assigned to teach math and chemistry at the Civil Institution of Secondary Education.