5- And 6-membered ring phostams are functionalized at nitrogen and carbon through the use of metal-catalyzed reactions, such as copper-catalyzed cross-coupling and palladium-catalyzed reductive Heck reaction. Different approaches are compared for the heterocyclization step and the introduction of the substituents.