We provide several applications of the minimal model program to the local and global study of co-rank 1 foliations on threefolds. Locally, we prove a singular variant of Malgrange's theorem, a classification of terminal foliation singularities and the existence of separatrices for log canonical singularities. Globally, we prove termination of flips, a connectedness theorem on log canonical centres, a non-vanishing theorem and some hyperbolicity properties of foliations.