2. When the dependent verb has not its own subject, both the following constructions are correct—

Es necesario hacerlo: It must be done
Es necesario que se haga: It must be done

III. The Subjunctive Mood is used after the following locations—-

Antes que (before)
En caso que (in case)
De miedo que (lest)
Por más que (however much, although)
Sin que (without)
Para que (so that)
Á menos que (unless)
Salvo que (except that)
Con tal que (provided that)
Sea que (whether … or)
Aunque (even if)

IV. The Subjunctive Mood is generally used after the following locations, when the action refers to future time, but the Indicative is used when the action refers to the past or present—

Después que (after)
Aunque (although)
De modo que (so that)
No obstante que (notwithstanding)
Cuandoquiera que (whenever)
Hasta que (until)
Luego que (as soon as)
Quienquiera que (whoever)
Comoquiera que (however)
Cualquiera que (whichever, whoever)
Dondequiera que (wherever)
El 1°, 2°, 3°, etc., que (the 1st 2nd 3rd, etc., that)
El único que (the only one that)
El solo que (the only one that)
El último que (the last that)
Nada que (nothng that)
Ninguo, nadie que (no one that)
El mejor (or any other superlative) que (the best etc., that)

E.g.—

Escribió de modo que su padre quedó contento: He wrote so that his father remained content.

Escriba V. de modo que su padre quede contento: Write so that your father may remain content.

Le pagué aunque no hizo su trabajo: I paid him, although he did not do his work.