We prove that a connected graph with at least nine vertices is a line graph if and only if it does not contain any of the seven given graphs as an induced subgraph. We also show that the number seven cannot be reduced even if the number of vertices is increased.