Using a simultaneous block polymerization/in situ cross-linking from a heterofunctional initiator approach, we produced a nanostructured and cross-linked block polymer in a single step from a ternary mixture of monomers and used it as a precursor for a cross-linked nanoporous material. Using 2-(benzylsulfanylthiocarbonylsulfanyl)ethanol as a heterofunctional initiator, simultaneous ring-opening transesterification polymerization of D,L-lactide in the presence of tin 2-ethylhexanoate as a catalyst and reversible addition-fragmentation chain transfer polymerization of styrene at 120 degrees C produced a polylactide-b-polystyrene (PLA-b-PS) block polymer. Incorporation of divinylbenzene in the polymerization mixture allowed in situ cross-linking during the simultaneous block polymerization to result in the cross-linked block polymer precursor in one step. This material was converted into cross-linked nanoporous polymer by etching PLA in a basic solution.