Complex sentence: Later he was transferred to the Tacna Garrison, where he remained until 1917 during which he married Rebeca Valenzuela, with whom he had six children.
Split into simpler sentences: Later he was transferred to the Tacna Garrison, where he remained until 1917. In that city he married Rebeca Valenzuela, with whom he had six children.