Soft lithography using polydimethylsiloxane (PDMS) allows one to fabricate complex microfluidic devices easily and at low cost. However, PDMS swells in the presence of many organic solvents significantly degrading the performance of the device. We present a method to coat PDMS channels with a glass-like layer using sol-gel chemistry. This coating greatly increases chemical resistance of the channels; moreover, it can be functionalized with a wide range of chemicals to precisely control interfacial properties. This method combines the ease of fabrication afforded by soft-lithography with the precision control and chemical robustness afforded by glass.