A comma should be used with a subordinating conjunction when the subordinate clause precedes the main clause in a sentence. For example, in the sentence "Although it was raining, we decided to go for a walk," the subordinate clause "Although it was raining" comes before the main clause "we decided to go for a walk," so a comma is placed after the subordinate clause.
However, if the main clause comes first, a comma is typically not needed: "We decided to go for a walk although it was raining."