Protons and electrons interact by electric force.
F=(k*q1*q2)/r^2 , k is a constant, r is the distance between the two and q1,q2 are the two charges, because the proton is positive and the electron negative the force has a negative value meaning they attract each other.