What year was the first submarine used in combat?

History Trivia Question: What year was the first submarine used in combat?