lWhen you don't want to identify or mention a specific subject in the subordinate clause, the impersonal expression is followed by an infinitive:
lEs necesario hacer las tareas. (It is necessary to do the homework.) Es necesario que los estudiantes hagan las tareas. (It is necessary that the students do the homework.)