Since alcohols are terrible leaving groups, we often want to convert them into alkyl halides. It turns out that there are 2 very common reagents that are used to turn alcohols into alkyl halides. So let's go ahead and just look right into those. Basically, these reagents are SOCl2 and PBr3. Respectively, they're going to turn alcohols into alkyl chlorides or alkyl bromides. The only thing that's special about these is that they always proceed through an SN2 mechanism. What that means is that since it's SN2 backside attack, these are limited to working on only primary and secondary alcohols. If I have a tertiary alcohol, I cannot use SOCl2 or PBr3 because I'm not going to get a backside attack. Remember, SN2 just means backside attack, and remember that tertiaries are poor at it because tertiaries don't have a good backside, so it needs to be either primary or secondary. Since this is a backside attack, what kind of stereochemistry do you think we could expect? We're always going to get inversion of configuration. Remember, inversion of configuration and backside attack go hand in hand. Anytime I say one, I'm always referring to the other.
Let's go ahead and analyze this mechanism. I'm going to show you the general mechanism for SOCl2, but the same thing applies to PBr3. In fact, I'm going to have you guys figure out the mechanism for PBr3 all on your own. Let's check out SOCl2. Overall, the structure of SOCl2 or thionyl chloride is an S, a double bond O, and then two chlorines coming off the end. What's special about this molecule is that it actually has a very electrophilic portion. Think of this oxygen here as a nucleophile. It has extra electrons that it wants to give away. If it were to attack one of the atoms on this thionyl chloride, Cl, sulfur, oxygen, which one would be the most susceptible towards nucleophilic attack? Or in other words, which one has the biggest partial positive charge that would be attracted to the negative charge of the oxygen? If you draw dipoles, it becomes painfully clear that you have dipoles pulling in all directions away from the sulfur. That means that the sulfur is going to have a very significant partial positive charge, so my arrow will start from my oxygen and attack the sulfur. Are we done with this mechanism or at least this part? No. Because if we make a bond, we have to break a bond because sulfur cannot have 5 bonds. It can either have 4 or expand its octet to have 6, but it can't have 5. The bond that we're going to break is the one the double bond leading up to the O. We're going to kick those electrons up to the O. Let's draw the next step. What I end up getting is I end up with O H. That H is still there from before, but now that's attached to a sulfur, an O negative, a chlorine, and a chlorine. By the way, we're forgetting a charge. There should be a positive charge right there because oxygen doesn't like having 3 bonds. The next step is that this oxygen does not like having that negative formal charge and it actually has two really good leaving groups right there. So, this negative charge is going to go down and reform the double bond and kick out one of these chlorines. What I'm going to get at this stage is I'm going to end up getting a leaving group that looks like this: O S double bond O Cl, with the H here and the positive charge.
It turns out that now this leaving group is excellent because that O has a direct positive charge, which means that after it leaves, it will be neutral, which is great. On top of that, the sulfur pulls electrons away. This just has an amazing leaving group. So what do you think could kick it out? What could attack the carbon and kick out this big leaving group? It's going to be the Cl negative that just got kicked out. This Cl that we kicked out is now this Cl. What's going to happen now, is that we get the backside attack. Now I'm going to get the Cl attacking that carbon and kicking out this entire thing as a leaving group. What I end up with is an alkyl halide. In this case, it's an alkyl chloride where my chlorine should be facing which direction? It needs to be on the dash. The reason is that my leaving group was on the wedge before. After I did a backside attack, I need to invert the stereochemistry. I'm going to get that plus my leaving group, which just looks like this: Cl on one side and O on the other. But guess what? Your chemistry professor does not really care about this one. I'm just going to put a little X. They don't care about that. What they really care about is your organic product over here. Especially that you know the stereochemistry because that lets them know that you really understand what's going on.
I hope that mechanism wasn't too complicated. I know it was a little weird how we kicked the electrons up to the O and kicked out a chlorine, but that's actually a really common pattern when it comes to double bonds to O. In Organic Chemistry II, we're going to be doing this mechanism all the time. So it's actually really good that you're getting practice with it right away. That was the mechanism of thionyl chloride. What I want you guys to do now is to use that knowledge to try to draw the mechanism for this entire reaction all on your own. I know that sounds really complicated, but just so you know, the PBr3 is going to react exactly the same way as the SOCl2 did. In fact, it's going to be a little bit easier. Okay. And then the NaN3 is just a reaction that you should know from before that I'd like you to integrate with this to try to figure out what's going on. So even if you don't get the second part, at least give the first step of this reaction your best shot and then I'll explain everything to you. So go for it.