We give a necessary and sufficient condition for the validity of the strong maximum principle in one space dimension.