Complex sentence: The second time was in 1863 (as the 10th Rhode Island Battery) when it deployed to defend Washington, D.C. in reaction to the Confederate Army invading Pennsylvania.
Split into simpler sentences: The second time was in 1863, when it served as the 10th Rhode Island Battery. The 10th Battery was deployed to defend Washington, D.C. in reaction to the Confederate Army invading Pennsylvania.