Complex sentence: The 49th served in the New Bern area and near the Chowan River in North Carolina with the purpose of protecting the Petersburg/Weldon/Wilmington railroad.
Split into simpler sentences: The 49th served in the New Bern area and near the Chowan River in North Carolina. Their main purpose was protecting the Petersburg/Weldon/Wilmington Railroad.