Help!!!

So me and this guy are talking, but this other guy keeps messaging me. How do I get the guy who's messaging me to stop messaging me?